Summary| Tags| Feature: src/test/java/InspireTest/ngr/T02_Services.feature| get details
Scenario: [1.1:82] ff8f6da2-949e-4838-90f6-fd895a4a240f
ms: 668
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:04.704 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
10
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
597
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
7
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
4
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
3
05:06:05.343 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:06:05.345 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
4
05:06:05.350 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:05.350 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
0
05:06:05.360 [print] RIVM
57
* print operateson
0
05:06:05.360 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:05.363 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:05.365 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
6
05:06:05.372 [print] "true";"true";"true"
76
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.2:82] c56433ca-35f2-4aaf-8bfa-35d8e0e52dda
ms: 696
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
1
05:06:04.704 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
653
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
13
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:05.385 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:05.386 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
3
05:06:05.390 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:05.391 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:05.393 [print] RIVM
57
* print operateson
1
05:06:05.393 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:05.396 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:05.397 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:05.399 [print] "true";"true";"true"
76
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.3:82] 0606e8cb-fa51-402c-a3be-19fd724b0a10
ms: 619
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:04.714 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
5
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
4
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
3
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
05:06:05.308 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:06:05.311 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
1
05:06:05.317 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:05.317 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:05.319 [print] RIVM
57
* print operateson
1
05:06:05.319 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:05.321 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
8
05:06:05.331 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:05.332 [print] "true";"true";"true"
76
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.4:82] b4485d59-a945-4940-a2f5-3ce7de6a947b
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:04.724 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
4
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:05.280 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:05.281 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:05.282 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:05.283 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:05.284 [print] RIVM
57
* print operateson
0
05:06:05.284 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
4
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
1
05:06:05.290 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
5
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:05.296 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:05.298 [print] "true";"true";"true"
76
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
15
78
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
14
Scenario: [1.5:82] cefad637-5ffd-4dd0-b475-bc125a11f7eb
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.333 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
4
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cefad637-5ffd-4dd0-b475-bc125a11f7eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cefad637-5ffd-4dd0-b475-bc125a11f7eb'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:05.887 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:05.888 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:05.888 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:05.889 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:05.890 [print] Rijkswaterstaat
57
* print operateson
0
05:06:05.890 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:05.892 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:05.893 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:05.894 [print] "true";"true"
76
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.6:82] b6d902f4-97e8-4bcc-ba87-e58134645ab7
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.341 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:05.930 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:05.932 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:05.933 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:05.933 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:05.934 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:05.935 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:05.937 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:05.938 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:05.939 [print] "true";"true"
76
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.7:82] 9fd2324b-9e02-4eab-bd4a-8e2be4fcd545
ms: 654
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.384 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
8
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
51
45
* print connectUrl
0
05:06:06.030 [print] https://inspire.rivm.nl/geoserver/airq/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
6
50
* print protocol1
0
05:06:06.036 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:06.037 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.038 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.038 [print] RIVM
57
* print operateson
0
05:06:06.039 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
12
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:06.053 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:06.055 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:06.056 [print] "true";"true";"true"
76
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.8:82] 5be1b57b-2cac-4119-92eb-700346543d47
ms: 669
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.405 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
1
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be1b57b-2cac-4119-92eb-700346543d47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47'
50
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
12
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
4
05:06:06.057 [print] https://inspire.caris.nl/geoserver/boundary/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:06.058 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
4
05:06:06.062 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.063 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.064 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:06.064 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
2
05:06:06.068 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:06.069 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:06.070 [print] "true";"true"
76
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.9:82] 7c48322f-f9cf-4a08-aa63-c4de080c13ac
ms: 646
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.899 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c48322f-f9cf-4a08-aa63-c4de080c13ac'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
624
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c48322f-f9cf-4a08-aa63-c4de080c13ac'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:06.536 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:06.537 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:06.538 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.538 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.539 [print] Rijkswaterstaat
57
* print operateson
1
05:06:06.540 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aa#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:06.542 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:06.543 [print] Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:06.544 [print] true
76
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.10:82] 604d241d-6792-4286-bbef-44b2ce5c38cc
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:05.974 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
53
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
14
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '604d241d-6792-4286-bbef-44b2ce5c38cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '604d241d-6792-4286-bbef-44b2ce5c38cc'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:06.598 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:06.600 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:06.601 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.601 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.603 [print] Rijkswaterstaat
57
* print operateson
0
05:06:06.603 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:06.606 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:06.607 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:06.608 [print] true
76
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
3
77
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.11:82] cfc800cb-e903-4364-9415-ddd3e0ecf49c
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.071 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cfc800cb-e903-4364-9415-ddd3e0ecf49c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cfc800cb-e903-4364-9415-ddd3e0ecf49c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
7
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:06.618 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:06.620 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:06.621 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.622 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.623 [print] Rijkswaterstaat
57
* print operateson
0
05:06:06.623 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:06.626 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:06.627 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:06.629 [print] true
76
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.12:82] cfc800cb-e903-4364-9415-ddd3e0ecf49b
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.083 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cfc800cb-e903-4364-9415-ddd3e0ecf49b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cfc800cb-e903-4364-9415-ddd3e0ecf49b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:06.648 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:06.649 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:06.650 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:06.650 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:06.651 [print] Rijkswaterstaat
57
* print operateson
0
05:06:06.651 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
05:06:06.656 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:06.657 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:06.658 [print] "true";"true"
76
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.13:82] 74620aa8-4fa2-414d-8350-50d93e500da8
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.550 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '74620aa8-4fa2-414d-8350-50d93e500da8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74620aa8-4fa2-414d-8350-50d93e500da8'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:07.089 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wfs?service=WFS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.090 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.091 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.092 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:07.093 [print] Beheer PDOK
57
* print operateson
1
05:06:07.094 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.096 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:07.097 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.098 [print] "true";"true"
76
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.14:82] 6b574ba3-3b1c-4f29-a631-0f160713d96b
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.617 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
1
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6b574ba3-3b1c-4f29-a631-0f160713d96b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b574ba3-3b1c-4f29-a631-0f160713d96b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:07.160 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6b574ba3-3b1c-4f29-a631-0f160713d96a_wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.162 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.164 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:07.165 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.166 [print] Rijkswaterstaat
57
* print operateson
1
05:06:07.166 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.169 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:07.170 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.172 [print] "true";"true"
76
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.15:82] 9d983730-e750-485a-9c0c-39bf9bt72cf8
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.635 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d983730-e750-485a-9c0c-39bf9bt72cf8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d983730-e750-485a-9c0c-39bf9bt72cf8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
3
05:06:07.195 [print] https://www.rijkswaterstaat.nl/apps/geoservices/geodata/dmc/bodemhoogte_5mtr_atom_index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.196 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.197 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.198 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.199 [print] Rijkswaterstaat
57
* print operateson
1
05:06:07.199 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.202 [print] http://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:07.203 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.204 [print] "true";"true"
76
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.16:82] 243c6401-9ed1-4cdd-b9a7-caff08813ce4
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:06.669 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:07.228 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.228 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.230 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.230 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.232 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:07.232 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.234 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:07.235 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.236 [print] "true";"true"
76
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.17:82] 82fa284e-8218-40e4-a593-c2f8a832c3d5
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.103 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:07.687 [print] https://www.gdngeoservices.nl/inspire/wms/olie_en_gasvelden?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.688 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:07.689 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.689 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.690 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:07.690 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.692 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:07.693 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.694 [print] "true";"false"
76
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.18:82] dda53ebc-bee7-4765-8f1f-6ac59b0aec39
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.179 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
12
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:07.721 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.722 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.723 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.724 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.725 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
05:06:07.725 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.727 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:07.729 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.730 [print] "true";"false"
76
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.19:82] f61eec5c-cb91-40b6-ad35-9bca967006cc
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.211 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:07.760 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.761 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.762 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.763 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.764 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:07.764 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.766 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:07.768 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.769 [print] "false";"false"
76
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.20:82] 923a666c-ee4f-496c-8c85-94d5f81e1f30
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.245 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:07.791 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:07.792 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:07.793 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:07.793 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:07.794 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:07.795 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:07.797 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:07.798 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:07.799 [print] "true";"true"
76
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.21:82] 17ad94f6-4961-448b-a6f5-5368b7870409
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.699 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:08.236 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
14
50
* print protocol1
1
05:06:08.251 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:08.252 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.252 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
05:06:08.255 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:08.256 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:08.258 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:08.259 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:08.261 [print] "true";"true"
76
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.22:82] a12ae6ca-b755-4707-884f-95c0d66f431a
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.735 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:08.284 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:08.285 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:08.286 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.287 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:08.288 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:08.289 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:08.291 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:08.292 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:08.294 [print] "true";"true"
76
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.23:82] 5255c080-5f4e-4f7a-8a2c-6ac9d0103288
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.774 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:08.315 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:08.317 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:08.318 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:08.319 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:08.320 [print] RIVM
57
* print operateson
1
05:06:08.321 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:08.323 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:08.324 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:08.326 [print] "true";"true";"true"
76
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.24:82] 25c69c01-8dfa-406f-bbcb-24feba25dcc6
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:07.807 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:08.351 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wms/v1?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:08.352 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:08.353 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.354 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:08.355 [print] Beheer PDOK
57
* print operateson
1
05:06:08.356 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:08.358 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:08.360 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:08.361 [print] "true";"true"
76
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.25:82] ea4cb6a2-f637-413a-91cc-d58473c2f138
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.267 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:08.849 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:08.850 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:08.851 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.851 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:08.852 [print] Interprovinciaal Overleg
57
* print operateson
0
05:06:08.852 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
8
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
4
05:06:08.867 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:08.868 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:08.869 [print] "false";"true";"true"
76
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
3
77
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.26:82] ca71572f-a498-4ca6-aa60-d4c4c4d59e2e
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.300 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
8
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:08.861 [print] https://inspire.caris.nl/geoserver/gnwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:08.862 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:08.863 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.863 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
6
05:06:08.870 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:08.870 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
11
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:08.882 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:08.883 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
4
05:06:08.888 [print] "true";"true"
76
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.27:82] 1492fa63-96e2-406d-9a27-6affe281d848
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1492fa63-96e2-406d-9a27-6affe281d848'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1492fa63-96e2-406d-9a27-6affe281d848'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:08.885 [print] https://inspire.caris.nl/geoserver/tz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:08.885 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:08.886 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.886 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
10
56
* print organisationpath
0
05:06:08.896 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:08.896 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:08.898 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:08.900 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:08.901 [print] "true";"true"
76
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.28:82] 8dcae920-002d-451d-9cef-cd4498358770
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.367 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8dcae920-002d-451d-9cef-cd4498358770'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8dcae920-002d-451d-9cef-cd4498358770'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:08.921 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:08.922 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:08.922 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:08.922 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:08.924 [print] Beheer PDOK
57
* print operateson
0
05:06:08.924 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:08.925 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:08.926 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:08.927 [print] "true";"true"
76
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.29:82] 73286af2-d0f4-4a62-9455-86ffa45ef279
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.884 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
2
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:09.472 [print] https://www.gdngeoservices.nl/inspire/wfs/zoutvelden_en_productieputten?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:09.473 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:09.474 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:09.474 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:09.475 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:09.475 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:09.476 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:09.477 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:09.478 [print] "true";"true"
76
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.30:82] 68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2
ms: 634
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.905 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
602
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:09.518 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:09.519 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:09.520 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:09.521 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:09.522 [print] Rijkswaterstaat
57
* print operateson
0
05:06:09.522 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:09.526 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:09.527 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:09.529 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
9
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.31:82] cefad637-5ffd-4dd0-b475-bc125a11f7ec
ms: 653
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.904 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
4
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cefad637-5ffd-4dd0-b475-bc125a11f7ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
622
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cefad637-5ffd-4dd0-b475-bc125a11f7ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
1
05:06:09.543 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:09.544 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:09.545 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
05:06:09.546 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:09.548 [print] Rijkswaterstaat
57
* print operateson
0
05:06:09.548 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
4
05:06:09.554 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:09.555 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:09.556 [print] true
76
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.32:82] 917b5ba0-4fdd-4654-8c18-b3ccdadaa55b
ms: 668
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:08.933 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '917b5ba0-4fdd-4654-8c18-b3ccdadaa55b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
648
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '917b5ba0-4fdd-4654-8c18-b3ccdadaa55b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:09.591 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:09.592 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:09.593 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:09.593 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:09.594 [print] Rijkswaterstaat
57
* print operateson
1
05:06:09.595 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:09.597 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:09.598 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:09.600 [print] "true";"true"
76
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.33:82] 504afbe6-0069-411b-b69b-2aae3728f73c
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:09.483 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '504afbe6-0069-411b-b69b-2aae3728f73c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '504afbe6-0069-411b-b69b-2aae3728f73c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:10.019 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.020 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.021 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.022 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.023 [print] Rijkswaterstaat
57
* print operateson
0
05:06:10.023 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.025 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.026 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.027 [print] true
76
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.34:82] 9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:09.550 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:10.099 [print] https:\/\/www.rijkswaterstaat.nl\/apps\/geoservices\/geodata\/dmc\/bodemhoogte_1mtr_insp
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.101 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.102 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.102 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.104 [print] Rijkswaterstaat
57
* print operateson
0
05:06:10.104 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.106 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.108 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.109 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.35:82] 9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:09.561 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
4
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:10.123 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.124 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.125 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.126 [print] Rijkswaterstaat
57
* print operateson
0
05:06:10.126 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
17
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.145 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.146 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.147 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.36:82] 9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:09.613 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
7
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:10.164 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_1mtr\/ows?service=WCS&request=getcapabilities&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.165 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.166 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.167 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.168 [print] Rijkswaterstaat
57
* print operateson
0
05:06:10.168 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.171 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.172 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.175 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.37:82] 2350b86b-3efd-47e4-883e-519bfa8d0abc
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.032 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2350b86b-3efd-47e4-883e-519bfa8d0abc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2350b86b-3efd-47e4-883e-519bfa8d0abc'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:10.593 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.594 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.595 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.595 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.596 [print] Rijkswaterstaat
57
* print operateson
0
05:06:10.596 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.598 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.599 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.600 [print] true
76
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.38:82] c7dad4b9-42a8-452f-a33b-d4938ed22142
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.118 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:10.676 [print] https://inspire.caris.nl/gs5/MarineRegion/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.677 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.678 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.678 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.679 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:10.679 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.681 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.682 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
05:06:10.685 [print] "true";"true"
76
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.39:82] dd414384-0bcb-4188-86e2-2843e12a579e
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.153 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:10.698 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.699 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
2
05:06:10.707 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.708 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:10.708 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:10.709 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.710 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.711 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.712 [print] "true";"true"
76
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
5
77
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.40:82] 7b4a0b26-5885-45cd-a99d-27887cff68e5
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.180 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:10.748 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:10.749 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:10.750 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:10.751 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:10.752 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:10.753 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:10.755 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:10.756 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:10.757 [print] "true";"false"
76
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.41:82] c3955762-73a3-4c16-a15c-f3869487a1ec
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.605 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c3955762-73a3-4c16-a15c-f3869487a1ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3955762-73a3-4c16-a15c-f3869487a1ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:11.135 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:11.136 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.137 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.137 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.138 [print] Rijkswaterstaat
57
* print operateson
0
05:06:11.139 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.141 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.142 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.143 [print] true
76
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.42:82] f00cd4f5-03e7-494f-8410-d07acf2247b1
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.700 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:11.237 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.238 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.239 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.240 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.241 [print] Beheer PDOK
57
* print operateson
0
05:06:11.241 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.243 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.244 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.245 [print] "true";"true"
76
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.43:82] 081bcfff-5f66-467c-95d0-d88dcf9aa4cf
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.721 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:11.266 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.266 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:06:11.269 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.269 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.270 [print] RIVM
57
* print operateson
0
05:06:11.270 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.272 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
0
05:06:11.273 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.274 [print] "true";"true";"true"
76
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.44:82] 604d241d-6792-4286-bbef-44b2ce5c38cb
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:10.763 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '604d241d-6792-4286-bbef-44b2ce5c38cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '604d241d-6792-4286-bbef-44b2ce5c38cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:11.302 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.303 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.305 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.305 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.307 [print] Rijkswaterstaat
57
* print operateson
1
05:06:11.307 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.310 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.311 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.313 [print] "true";"true"
76
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"604d241d-6792-4286-bbef-44b2ce5c38cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.45:82] c3955762-73a3-4c16-a15c-f3869487a1eb
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.149 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c3955762-73a3-4c16-a15c-f3869487a1eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3955762-73a3-4c16-a15c-f3869487a1eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:11.700 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.701 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.702 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.702 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.703 [print] Rijkswaterstaat
57
* print operateson
0
05:06:11.703 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.705 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.706 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
05:06:11.708 [print] "true";"true"
76
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"c3955762-73a3-4c16-a15c-f3869487a1eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.46:82] 6b574ba3-3b1c-4f29-a631-0f160713d96c
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.252 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6b574ba3-3b1c-4f29-a631-0f160713d96c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b574ba3-3b1c-4f29-a631-0f160713d96c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:11.787 [print] https://haleconnect.com/ows/services/org.292.6b574ba3-3b1c-4f29-a631-0f160713d96a_wfs?SERVICE=WFS&REQUEST=GetCapabilities&VERSION=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:11.788 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:11.790 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.790 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:11.791 [print] Rijkswaterstaat
57
* print operateson
1
05:06:11.792 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.794 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:11.795 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.797 [print] true
76
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6b574ba3-3b1c-4f29-a631-0f160713d96c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.47:82] 1e01d173-96f4-40b1-8236-c6a9cfdac252
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.280 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
4
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:11.829 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.829 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.830 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.830 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.831 [print] KNMI
57
* print operateson
0
05:06:11.831 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.833 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.834 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.835 [print] true
76
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.48:82] 2350b86b-3efd-47e4-883e-519bfa8d0abb
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.324 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2350b86b-3efd-47e4-883e-519bfa8d0abb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2350b86b-3efd-47e4-883e-519bfa8d0abb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:11.857 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:11.857 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:11.858 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:11.858 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:11.859 [print] Rijkswaterstaat
57
* print operateson
0
05:06:11.859 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:11.861 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:11.862 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:11.863 [print] "true";"true"
76
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2350b86b-3efd-47e4-883e-519bfa8d0abb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.49:82] 0d2ca03b-fb7b-466a-bb93-e2bfb596e394
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.717 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
8
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
610
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:12.348 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.349 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.350 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.350 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.351 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:12.352 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.353 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.354 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.355 [print] "true";"true"
76
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.50:82] 5f0c583a-101e-45ea-b684-a056713cf811
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.802 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5f0c583a-101e-45ea-b684-a056713cf811'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.376 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.377 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.377 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.378 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.379 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:12.379 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.381 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.382 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.383 [print] "true";"true"
76
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.51:82] f2d2cd9d-7410-485a-95e0-c1b885243eaf
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.839 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:12.418 [print] https://inspire.caris.nl/geoserver/eez/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.419 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.420 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.420 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.421 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:12.422 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.424 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.425 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.426 [print] "true";"true"
76
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
9
Scenario: [1.52:82] 6d86c14f-cccf-41e9-a58e-ead9d52ae35d
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:11.870 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
22
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.460 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/AM
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.461 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.462 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.462 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.463 [print] Informatiehuis Water
57
* print operateson
0
05:06:12.463 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.465 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.466 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.467 [print] "false";"true";"true"
76
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.53:82] ebd029f5-6e8f-4d61-b89a-11427c96bf3a
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.360 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.896 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.897 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.898 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.898 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.899 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:12.899 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.900 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.901 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.902 [print] "true";"true"
76
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.54:82] 3fa3aa0b-cd4a-4680-ad2e-89fc28411565
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.388 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.926 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.927 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.928 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.928 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.929 [print] KNMI
57
* print operateson
0
05:06:12.929 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.930 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.931 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.932 [print] true
76
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.55:82] d0b1a576-d1c5-47b4-972f-353f37eb1f8d
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.440 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.967 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:12.967 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:12.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:12.968 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:12.969 [print] KNMI
57
* print operateson
0
05:06:12.969 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:12.971 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:12.972 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:12.973 [print] true
76
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.56:82] 95664230-19bc-4f33-b2cf-10aedbe75c11
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.474 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95664230-19bc-4f33-b2cf-10aedbe75c11'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95664230-19bc-4f33-b2cf-10aedbe75c11'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:12.997 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
8
05:06:13.005 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.007 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.007 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
05:06:13.009 [print] KNMI
57
* print operateson
1
05:06:13.010 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.012 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:13.013 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.014 [print] true
76
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.57:82] cf89409f-e268-4adb-9f34-a63b84ecfc12
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.907 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:13.439 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:13.440 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.442 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.442 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:13.443 [print] KNMI
57
* print operateson
0
05:06:13.444 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.446 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:13.447 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.448 [print] true
76
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.58:82] 3094a1c4-3dd6-4e8e-9929-4a63dd66992e
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.936 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:13.485 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/download_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:13.486 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.487 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.487 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:13.489 [print] Interprovinciaal Overleg
57
* print operateson
1
05:06:13.489 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.491 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:13.492 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.494 [print] "false";"true";"true"
76
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.59:82] 702060c1-b3fd-44ec-8cc6-d4249d150110
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:12.977 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '702060c1-b3fd-44ec-8cc6-d4249d150110'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '702060c1-b3fd-44ec-8cc6-d4249d150110'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:13.513 [print] http://services.inspire-provincies.nl/HabitatsAndBiotopes/services/download_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:13.514 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.515 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.516 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:13.516 [print] Interprovinciaal Overleg
57
* print operateson
0
05:06:13.517 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.518 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:13.520 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.521 [print] "false";"true";"true"
76
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.60:82] 0bb27a13-76f1-4374-8d44-76e937198e8d
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.019 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:13.551 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:13.552 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.553 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.553 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:13.554 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:13.554 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.556 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:13.557 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.558 [print] "true";"true"
76
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.61:82] 364c5d7a-d6ec-11ea-87d0-0242ac130003
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.453 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:13.980 [print] #notpresent
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:13.981 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:13.982 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:13.982 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:13.983 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
05:06:13.984 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:13.986 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:13.987 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:13.988 [print] "true";"true"
76
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.62:82] e010ca7e-090b-4e38-9ce3-561dcf94fb63
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.498 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e010ca7e-090b-4e38-9ce3-561dcf94fb63'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e010ca7e-090b-4e38-9ce3-561dcf94fb63'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:14.034 [print] https://service.pdok.nl/rws/geluidbelasting/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:14.035 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.036 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.036 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.037 [print] Beheer PDOK
57
* print operateson
0
05:06:14.038 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.039 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:14.040 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.042 [print] "true";"true"
76
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.63:82] e29b19de-d191-47f2-b944-5056a7674cce
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.525 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
2
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:14.091 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:14.092 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.093 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.093 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.094 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:14.094 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.096 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:14.098 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.099 [print] "true";"true"
76
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.64:82] 68d14b1c-71ad-4ce7-8267-45787a80c2d4
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.562 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:14.114 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/ad\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:14.116 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.117 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.117 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.119 [print] Beheer PDOK
57
* print operateson
0
05:06:14.119 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.121 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:14.123 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:14.125 [print] "true";"true"
76
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.65:82] efb5222c-112a-4c57-9bbf-f2af918cb9b5
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:13.993 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:14.535 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:14.536 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.537 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.537 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.538 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:14.538 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.540 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:14.541 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.541 [print] "true";"true"
76
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.66:82] d467c2cc-4026-b80a-d4e1a9d2bf79
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.050 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd467c2cc-4026-b80a-d4e1a9d2bf79'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd467c2cc-4026-b80a-d4e1a9d2bf79'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:14.609 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/hy-n\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:14.610 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
2
05:06:14.611 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:14.613 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:14.615 [print] Beheer PDOK
57
* print operateson
0
05:06:14.616 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.618 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:14.619 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.620 [print] "true";"true"
76
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.67:82] 68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.104 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:14.651 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:14.652 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.653 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.654 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.655 [print] Rijkswaterstaat
57
* print operateson
0
05:06:14.655 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:14.657 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:14.659 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.660 [print] true
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.68:82] d293204f-6581-4b0a-811b-1dcce97adedd
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.130 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd293204f-6581-4b0a-811b-1dcce97adedd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd293204f-6581-4b0a-811b-1dcce97adedd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:14.678 [print] https://geodata.nationaalgeoregister.nl/publiekrechtelijkebeperking/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:14.679 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:14.680 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:14.680 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:14.681 [print] Beheer PDOK
57
* print operateson
0
05:06:14.682 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:14.684 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:14.685 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:14.687 [print] "true";"true"
76
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.69:82] 87a382da-c6dc-403c-a006-2379eb6daaa6
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.546 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:15.123 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.124 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
05:06:15.127 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:15.128 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:15.129 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.131 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:15.132 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.133 [print] "true";"true"
76
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.70:82] 7dc30aed-0940-4e69-b34c-9f24b34078eb
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.626 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
8
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:15.183 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.184 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.185 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.185 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.186 [print] RIVM
57
* print operateson
0
05:06:15.186 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.188 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.190 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.191 [print] "true";"true";"true"
76
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.71:82] a4c5aa6c-6c7f-45d7-9799-011edd83d9c2
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.664 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:15.220 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.221 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.222 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.223 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.224 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:15.224 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.226 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.227 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.228 [print] "true";"true"
76
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.72:82] a7e4bc31-60c1-4b78-bef1-eed768ceafa0
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:14.694 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:15.246 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.247 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.248 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.249 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.250 [print] KNMI
57
* print operateson
0
05:06:15.250 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.252 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.253 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.255 [print] true
76
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.73:82] 00e8746f-5031-413e-8343-9203c8ea82ee
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.138 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '00e8746f-5031-413e-8343-9203c8ea82ee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '00e8746f-5031-413e-8343-9203c8ea82ee'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:15.686 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/download_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.687 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.688 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.688 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.689 [print] Interprovinciaal Overleg
57
* print operateson
0
05:06:15.690 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.692 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.693 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.694 [print] "false";"true";"true"
76
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.74:82] 777f41ee-8269-4bbc-b0e4-f889c62be099
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.198 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:15.736 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.737 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.738 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.738 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.740 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:15.740 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.742 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.743 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.744 [print] "false";"false"
76
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.75:82] c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.232 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:15.774 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:15.775 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.777 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.777 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.778 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:15.778 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.780 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:15.781 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.783 [print] "true";"true"
76
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.76:82] ef2a7962-8bb4-483f-ca52-85123f579
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.259 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ca52-85123f579'
0
27
And param elementsetname = 'full'
1
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ca52-85123f579'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:15.810 [print] http://data.waterkwaliteitsportaal.nl/inspire/ds/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:15.811 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:15.812 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:15.812 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:15.813 [print] Informatiehuis Water
57
* print operateson
0
05:06:15.813 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:15.815 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
4
68
* print corConformanceTitles
0
05:06:15.820 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:15.821 [print] "false";"true";"true"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.77:82] cd370f58-0e54-48d6-b83b-ccd332bfb7c7
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.699 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:16.241 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.242 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.243 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.243 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.244 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:16.245 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.247 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:16.248 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.249 [print] "false";"false"
76
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.78:82] c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.749 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
05:06:16.269 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.270 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.271 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.271 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.273 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:16.273 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.275 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.276 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.277 [print] true
76
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.79:82] 22bedc12-e9cb-4419-8e51-dfb375d46d01
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.788 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '22bedc12-e9cb-4419-8e51-dfb375d46d01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '22bedc12-e9cb-4419-8e51-dfb375d46d01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:16.317 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/view_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.318 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.319 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.319 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.320 [print] Interprovinciaal Overleg
57
* print operateson
0
05:06:16.320 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.322 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.324 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.325 [print] "false";"true";"true"
76
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.80:82] 914a6e0c-2aae-42f8-8425-2a047c245dab
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:15.826 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:16.371 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.372 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.373 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.373 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.374 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:16.375 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.377 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.378 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.379 [print] true
76
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.81:82] a6098c24-4caf-4528-954c-672b9ec6cf78
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.256 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
9
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:16.808 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.809 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.810 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.810 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.811 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:16.811 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.813 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.815 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.816 [print] "false";"false"
76
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.82:82] 63f622ef-46b3-411a-a2aa-045cabf1e3ac
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.282 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:16.832 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wfs/v1?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.833 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.834 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.835 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.836 [print] Beheer PDOK
57
* print operateson
0
05:06:16.836 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.838 [print] https://eur-lex.europa.eu/eli/reg/2010/1089
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.839 [print] "OGC WFS 1.0.0";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Deze service voldoet aan de specificaties voor spatial data services";"harmonised";"De service voldoet aan de requirements van de harmonised conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.841 [print] "true";"true";"true"
76
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.83:82] a02c6566-e0ad-4fc1-b217-67cc1099dea2
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.330 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:16.867 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.868 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.869 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.869 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.870 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:16.870 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.872 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.873 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.874 [print] "false";"false"
76
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.84:82] 76342a6d-452e-4e21-b5c0-81ff7b1be90e
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.383 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:16.932 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:16.933 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:16.933 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:16.934 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:16.935 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:16.935 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:16.937 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:16.938 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:16.939 [print] "true";"true"
76
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.85:82] 1e2cb7d4-934a-437a-809e-fda67b4a8824
ms: 622
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.820 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e2cb7d4-934a-437a-809e-fda67b4a8824'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e2cb7d4-934a-437a-809e-fda67b4a8824'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
12
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
4
05:06:17.420 [print] https://inspire.caris.nl/geoserver/eez/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:17.421 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:17.422 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:17.423 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:17.425 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:17.425 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
05:06:17.430 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
4
05:06:17.435 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
6
05:06:17.442 [print] "true";"true"
76
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.86:82] bd14098b-44e6-47e5-959d-f40dda65da5a
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.846 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:17.402 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:17.403 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:17.404 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:17.404 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:17.405 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:17.405 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:17.407 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
8
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:17.416 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:17.417 [print] "false";"false"
76
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.87:82] fa3ecd49-4571-4eb3-84f3-2865f42934b2
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.878 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
4
05:06:17.419 [print] https://www.gdngeoservices.nl/inspire/wfs/olie_en_gasvelden?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
4
05:06:17.424 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
7
05:06:17.431 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:17.432 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:17.433 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:17.433 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:17.436 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:17.437 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
6
05:06:17.447 [print] "true";"true"
76
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.88:82] 4074b3c3-ca85-45ad-bc0d-b5fca8540z0b
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:16.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
14
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:17.519 [print] https://service.pdok.nl/kadaster/adressen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:17.520 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:17.521 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:17.522 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:17.523 [print] Beheer PDOK
57
* print operateson
1
05:06:17.524 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:17.525 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:17.527 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:17.528 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.89:82] ce0a3f8e-6713-455f-805e-a067162c287d
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:17.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:17.964 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:17.965 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:17.966 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:17.966 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:17.967 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:17.967 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:17.969 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
0
05:06:17.971 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:17.972 [print] true
76
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.90:82] 03c39474-aef9-4169-95da-9890af440b14
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:17.450 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c39474-aef9-4169-95da-9890af440b14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:18.023 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
4
05:06:18.027 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.028 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.029 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.030 [print] RIVM
57
* print operateson
0
05:06:18.030 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.032 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:18.033 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.034 [print] "true";"true";"true"
76
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.91:82] 7c48322f-f9cf-4a08-aa63-c4de080c13ab
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:17.451 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c48322f-f9cf-4a08-aa63-c4de080c13ab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c48322f-f9cf-4a08-aa63-c4de080c13ab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:18.005 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.006 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.007 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.007 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.009 [print] Rijkswaterstaat
57
* print operateson
0
05:06:18.009 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aa#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.011 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:18.013 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.014 [print] "true";"true"
76
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.92:82] 5dfccef3-9b52-47f2-bb02-66b74aaf3af8
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:17.536 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:18.058 [print] https://inspire.caris.nl/geoserver/tz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.059 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.060 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.060 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.061 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:18.062 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4d514a2b-4a7e-4686-b9ea-87cb3e17ed52&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.064 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:18.065 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.066 [print] "true";"true"
76
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.93:82] 2d1860f2-f8ba-457e-bd64-93cdabd69aee
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:17.978 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:18.570 [print] https://inspire.caris.nl/geoserver/cz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.571 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.572 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.572 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.573 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:18.573 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.574 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:18.575 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.576 [print] "true";"true"
76
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.94:82] 1009c2a4-4dba-49a5-b643-914ba8b80b52
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.020 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:18.622 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.623 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.624 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.624 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.625 [print] KNMI
57
* print operateson
0
05:06:18.625 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.627 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:18.628 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.629 [print] true
76
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.95:82] 12505d53-a942-467e-a462-ddbe5ac6467f
ms: 687
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.039 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
651
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f'
7
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:18.707 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.708 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
0
05:06:18.714 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.714 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:18.715 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:18.715 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
05:06:18.720 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:18.721 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:18.722 [print] true
76
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.96:82] ebd6ea46-ee7b-432f-83c4-058c889a790d
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.071 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:18.669 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:18.670 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:18.671 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:18.671 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
22
56
* print organisationpath
0
05:06:18.693 [print] Interprovinciaal Overleg
57
* print operateson
3
05:06:18.696 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:18.698 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
2
68
* print corConformanceTitles
2
05:06:18.703 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
05:06:18.706 [print] "false";"true";"true"
76
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.97:82] bbf57a25-0476-4d46-8e68-caaa5864a177
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.582 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf57a25-0476-4d46-8e68-caaa5864a177'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf57a25-0476-4d46-8e68-caaa5864a177'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.125 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.126 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.126 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.127 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.127 [print] KNMI
57
* print operateson
1
05:06:19.129 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.130 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.132 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.133 [print] true
76
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.98:82] b145a28d-70fd-4a8e-9750-3865bbcc5bea
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.633 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.161 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.162 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.164 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.165 [print] KNMI
57
* print operateson
0
05:06:19.165 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.166 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.167 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.168 [print] true
76
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.99:82] 224d93f6-0e4e-41fe-8424-1ab11a6c55ed
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.713 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
3
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.263 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.263 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.264 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.265 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.265 [print] RIVM
57
* print operateson
0
05:06:19.266 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.267 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.268 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.269 [print] "true";"true";"true"
76
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.100:82] 917b5ba0-4fdd-4654-8c18-b3ccdadaa55c
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:18.730 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '917b5ba0-4fdd-4654-8c18-b3ccdadaa55c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '917b5ba0-4fdd-4654-8c18-b3ccdadaa55c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.284 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.285 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.286 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.286 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.287 [print] Rijkswaterstaat
57
* print operateson
0
05:06:19.287 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.288 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.289 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.290 [print] true
76
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.101:82] 755d488b-7b94-4883-95be-6aa279604f85
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.138 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '755d488b-7b94-4883-95be-6aa279604f85'
0
27
And param elementsetname = 'full'
1
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.685 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.686 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.687 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.687 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.688 [print] RIVM
57
* print operateson
0
05:06:19.688 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.689 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.690 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.691 [print] "true";"true";"true"
76
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.102:82] 745968a3-37af-4406-988e-ec595f58c7fe
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.173 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '745968a3-37af-4406-988e-ec595f58c7fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.707 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.707 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.708 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.708 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.709 [print] RIVM
57
* print operateson
0
05:06:19.709 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.711 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
5
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.716 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.718 [print] "true";"true";"true"
76
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.103:82] 17db4dd9-462f-4b9e-b14f-0004cacdafbb
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.273 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:19.806 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.807 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.809 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:19.809 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.810 [print] KNMI
57
* print operateson
0
05:06:19.811 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.813 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:19.814 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.815 [print] true
76
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.104:82] 55cf16e8-1c04-462c-b78a-e0d28823dd2e
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.294 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:19.831 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:19.832 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:19.833 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:19.833 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:19.834 [print] KNMI
57
* print operateson
0
05:06:19.834 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:19.836 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:19.837 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:19.838 [print] true
76
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.105:82] 91041d33-54f8-40f1-8965-a867ba00cab8
ms: 527
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.696 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:20.216 [print] https://inspire.caris.nl/geoserver/gn/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:20.217 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:20.217 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.218 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:20.218 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:20.219 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:20.220 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:20.221 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.222 [print] "true";"true"
76
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.106:82] 6d2fce74-fb25-4322-ab25-1be8a3bc7fd0
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.725 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:20.270 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:20.271 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:20.272 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.273 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:20.274 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:06:20.275 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:20.277 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:20.278 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services 2.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:20.280 [print] "true";"true"
76
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.107:82] 2f28bd85-0afc-4dc1-85f3-dac55c1b485e
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.820 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:20.350 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:20.351 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:20.352 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.352 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:20.353 [print] KNMI
57
* print operateson
0
05:06:20.353 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:20.355 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:20.356 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.357 [print] true
76
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.108:82] a88b4ed1-49c1-4f91-991e-dc1cc7c575f7
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:19.842 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:20.387 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/view_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:20.388 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:20.390 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.390 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:20.392 [print] Interprovinciaal Overleg
57
* print operateson
1
05:06:20.392 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:20.394 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:20.396 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.397 [print] "false";"true";"true"
76
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.109:82] 7d533012-21ad-4a5b-a97e-a76988270273
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.226 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
16
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d533012-21ad-4a5b-a97e-a76988270273'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:20.782 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:20.783 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:20.784 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.785 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:20.786 [print] KNMI
57
* print operateson
1
05:06:20.787 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:20.789 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:20.791 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.792 [print] true
76
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.110:82] 9de0d2fa-debc-4f27-8298-5399b7844962
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.284 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
3
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9de0d2fa-debc-4f27-8298-5399b7844962'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9de0d2fa-debc-4f27-8298-5399b7844962'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:20.815 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:20.815 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:20.816 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.816 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:20.817 [print] KNMI
57
* print operateson
0
05:06:20.817 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:20.819 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:20.820 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.821 [print] true
76
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.111:82] 95e2c712-1b91-4f24-9453-c56b95227717
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.361 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95e2c712-1b91-4f24-9453-c56b95227717'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:20.915 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:20.916 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:20.917 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:20.917 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:20.918 [print] RIVM
57
* print operateson
0
05:06:20.919 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:20.921 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:20.922 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.923 [print] "true";"true";"true"
76
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.112:82] 9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.408 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
1
05:06:20.988 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
05:06:20.990 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:20.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:20.992 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:20.994 [print] Rijkswaterstaat
57
* print operateson
0
05:06:20.994 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:20.996 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:20.997 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:20.999 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.113:82] 609d0c9e-173f-4f90-b020-c91ab3a0b6ef
ms: 625
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.797 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
608
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:21.415 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wms\/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:21.416 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.416 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.416 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:21.417 [print] Beheer PDOK
57
* print operateson
0
05:06:21.417 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:21.419 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:21.420 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:21.421 [print] "true";"true"
76
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.114:82] 684ff4f6-1652-45a8-93f0-8e16d37b2a66
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.824 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:21.429 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/wms/v1_0?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:21.430 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.432 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.432 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:21.433 [print] Beheer PDOK
57
* print operateson
0
05:06:21.434 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:21.436 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:21.437 [print] "Waterschappen Administratieve eenheden INSPIRE";"Technische specificatie waarmee de service volledig conform is";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Deze service voldoet aan de specificaties voor spatial data services";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:21.438 [print] "true";"true";"true"
76
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.115:82] 3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:20.928 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:21.481 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wfs\/v1_0?request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:21.483 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.484 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.484 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:21.485 [print] Beheer PDOK
57
* print operateson
0
05:06:21.486 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:21.488 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:21.489 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:21.491 [print] "true";"true"
76
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.116:82] 67bcc21d-beda-449d-975c-00a4fa80f2b7
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.003 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:21.523 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:21.524 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.526 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:21.527 [print] Beheer PDOK
57
* print operateson
0
05:06:21.528 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:21.530 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:21.531 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:21.532 [print] "true";"true"
76
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.117:82] 2650d49b-7d9a-49b5-b748-a0372cd9b5cf
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.426 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:21.952 [print] https:\/\/service.pdok.nl\/hwh\/wsdiensteninspire\/wms\/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:21.953 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.954 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.955 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:21.956 [print] Beheer PDOK
57
* print operateson
0
05:06:21.956 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:21.958 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:21.959 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:21.960 [print] "true";"true"
76
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.118:82] 9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.442 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:21.996 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:21.997 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:21.998 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:21.999 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.000 [print] KNMI
57
* print operateson
0
05:06:22.000 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.002 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.003 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.004 [print] true
76
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.119:82] d7a395a2-8673-4794-a5a6-fed6492cd580
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.498 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:22.038 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:22.040 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.041 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.042 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.043 [print] Beheer PDOK
57
* print operateson
0
05:06:22.043 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.045 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.046 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.047 [print] "true";"true"
76
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.120:82] a301ddc7-c26f-42d8-b367-509ae5ae47d0
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.536 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
20
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:22.078 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:22.079 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.080 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.080 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.081 [print] Beheer PDOK
57
* print operateson
0
05:06:22.082 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.084 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:22.085 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.086 [print] "true";"true"
76
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.121:82] 8129296b-b9c1-489f-990a-df4a879e12b2
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:21.965 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:22.492 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:22.493 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.494 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.494 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.495 [print] Beheer PDOK
57
* print operateson
0
05:06:22.495 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.496 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.497 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.498 [print] "true";"true";"true"
76
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.122:82] f0c6fbfe-a172-4223-8af3-58f6a28c881d
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.011 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:22.538 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:22.539 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.540 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.540 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.541 [print] Beheer PDOK
57
* print operateson
0
05:06:22.541 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.542 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.543 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.544 [print] "true";"true"
76
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.123:82] f1e26638-3b45-4dd5-9ad0-f7d3654700f1
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.052 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:22.580 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:22.581 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.581 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.581 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.582 [print] Beheer PDOK
57
* print operateson
0
05:06:22.582 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.584 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.584 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.585 [print] "true";"true"
76
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.124:82] 0426f471-f325-42ed-a775-81c397592e86
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.091 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0426f471-f325-42ed-a775-81c397592e86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:22.620 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:22.621 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:22.622 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:22.622 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:22.623 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:22.623 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:22.624 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:22.625 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:22.626 [print] "false";"false"
76
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.125:82] db1e010a-96f8-453e-b63c-9c27d6273157
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.502 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db1e010a-96f8-453e-b63c-9c27d6273157'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db1e010a-96f8-453e-b63c-9c27d6273157'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:23.037 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.038 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.038 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.039 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.040 [print] Beheer PDOK
57
* print operateson
0
05:06:23.040 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.042 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.043 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.044 [print] "true";"true"
76
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.126:82] 448cc407-e405-4f07-8260-7489ec3b4f14
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.548 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '448cc407-e405-4f07-8260-7489ec3b4f14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '448cc407-e405-4f07-8260-7489ec3b4f14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:23.091 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.092 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.093 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.093 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.094 [print] Beheer PDOK
57
* print operateson
0
05:06:23.094 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.096 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:23.098 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.099 [print] "true";"true"
76
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.127:82] 25a99d92-ea8a-4163-82ab-3521c9b0c96b
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.589 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:23.117 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wfs\/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.118 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:23.119 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.120 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.121 [print] Beheer PDOK
57
* print operateson
0
05:06:23.121 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.123 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.125 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.126 [print] "true";"true"
76
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.128:82] dd49e02c-ea87-4ffc-89dd-f888608d95b7
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:22.629 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:23.156 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.157 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.158 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.158 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.159 [print] Beheer PDOK
57
* print operateson
0
05:06:23.159 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.160 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.161 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.162 [print] "true";"true"
76
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.129:82] 280cee65-1b66-4973-a569-75122e0b745b
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.048 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '280cee65-1b66-4973-a569-75122e0b745b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280cee65-1b66-4973-a569-75122e0b745b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:23.584 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wfs\/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.585 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.586 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.587 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.588 [print] Beheer PDOK
57
* print operateson
1
05:06:23.589 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.591 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:23.592 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.593 [print] "true";"true"
76
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.130:82] a2fdecfc-de33-4ce3-b935-4c9ac18c5a36
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.104 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:23.636 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.637 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.638 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.638 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.639 [print] Beheer PDOK
57
* print operateson
0
05:06:23.639 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.640 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.641 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.642 [print] "true";"true"
76
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.131:82] a5437cb4-98ef-4c8e-a5ed-000e7a82b774
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.130 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:23.688 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.689 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.690 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.690 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.691 [print] Beheer PDOK
57
* print operateson
0
05:06:23.691 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.693 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.694 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.694 [print] "true";"true"
76
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.132:82] abf1f9f0-1b85-40e8-86ec-86bee6003b4e
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.166 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:23.702 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:23.703 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:23.703 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:23.704 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:23.704 [print] Beheer PDOK
57
* print operateson
0
05:06:23.704 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:23.706 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:23.707 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:23.707 [print] "true";"true"
76
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.133:82] 180b6682-5d6f-429d-abb7-32f7d6253787
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.598 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.139 [print] https://geodata.nationaalgeoregister.nl/windkaart/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.140 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.141 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.141 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.142 [print] Beheer PDOK
57
* print operateson
0
05:06:24.142 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.143 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.144 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.145 [print] "true";"true"
76
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.134:82] d981070b-888c-42d5-85ff-1e383f3d7fce
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.647 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.174 [print] https://geodata.nationaalgeoregister.nl/windkaart/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.175 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.175 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.175 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.176 [print] Beheer PDOK
57
* print operateson
0
05:06:24.176 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.178 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.179 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.180 [print] "true";"true"
76
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.135:82] 823c5f01-5d11-481b-aa5f-e191d129365f
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.699 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '823c5f01-5d11-481b-aa5f-e191d129365f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '823c5f01-5d11-481b-aa5f-e191d129365f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.285 [print] https://service.pdok.nl/kadaster/gn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.285 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.286 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.286 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.287 [print] Beheer PDOK
57
* print operateson
0
05:06:24.287 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.288 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.289 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.290 [print] "true";"true"
76
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.136:82] 589a9223-7588-4cd7-93aa-5373a12d8cea
ms: 628
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:23.710 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '589a9223-7588-4cd7-93aa-5373a12d8cea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
595
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '589a9223-7588-4cd7-93aa-5373a12d8cea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
16
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:24.330 [print] https://service.pdok.nl/kadaster/hy/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.331 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.332 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.332 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:24.334 [print] Beheer PDOK
57
* print operateson
1
05:06:24.334 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.337 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.337 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.338 [print] "true";"true"
76
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.137:82] 5117ebc1-5a63-439b-b3ca-43b80be804fb
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.149 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5117ebc1-5a63-439b-b3ca-43b80be804fb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5117ebc1-5a63-439b-b3ca-43b80be804fb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.713 [print] https://service.pdok.nl/kadaster/ad/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.714 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.715 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.716 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.716 [print] Beheer PDOK
57
* print operateson
0
05:06:24.717 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.718 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.719 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.720 [print] "true";"true"
76
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.138:82] dae8f9e3-99af-4d21-9feb-29f2a1693077
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.185 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:24.748 [print] https://service.pdok.nl/kadaster/tn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.749 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.750 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.750 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.751 [print] Beheer PDOK
57
* print operateson
0
05:06:24.751 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.753 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.754 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.755 [print] "true";"true"
76
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.139:82] 7b8f44b5-6eae-4113-a835-84b8678c3dd5
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.294 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.824 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.824 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.825 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.825 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.826 [print] Beheer PDOK
57
* print operateson
0
05:06:24.826 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.828 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:24.829 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.830 [print] "true";"true"
76
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.140:82] 7ab53b91-9df1-4c39-ba0e-06ec80ce512b
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.343 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:24.880 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:24.881 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:24.882 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:24.882 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:24.882 [print] Beheer PDOK
57
* print operateson
0
05:06:24.883 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
5
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:24.889 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:24.891 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:24.892 [print] "true";"true"
76
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.141:82] 101a2cc7-bb53-4a16-98f9-bab1f4745b01
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.725 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.255 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.256 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.256 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.256 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.257 [print] Beheer PDOK
57
* print operateson
0
05:06:25.257 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.259 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.260 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.260 [print] "true";"true"
76
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.142:82] b023459a-9f0e-4d53-8059-a794119abbed
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.759 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.289 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.289 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.290 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.290 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.291 [print] Beheer PDOK
57
* print operateson
0
05:06:25.291 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.293 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.294 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.294 [print] "true";"true"
76
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.143:82] 108fec55-e467-4d04-ab35-fd0d7060e3e2
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.838 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.391 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.392 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.393 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.393 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.394 [print] Beheer PDOK
57
* print operateson
0
05:06:25.394 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.395 [print] "https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1";"http:\/\/data.europa.eu\/eli\/reg\/2009\/976"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.396 [print] "Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.397 [print] "true";"true"
76
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.144:82] e08079df-6c19-486e-916e-5c9948cfafea
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:24.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e08079df-6c19-486e-916e-5c9948cfafea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e08079df-6c19-486e-916e-5c9948cfafea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.428 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wfs?&request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.429 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.430 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.430 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.431 [print] Beheer PDOK
57
* print operateson
0
05:06:25.431 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.433 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.434 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.435 [print] "true";"true"
76
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.145:82] 488c1e6d-363e-4476-b2ff-17756ac9b35f
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.265 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '488c1e6d-363e-4476-b2ff-17756ac9b35f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '488c1e6d-363e-4476-b2ff-17756ac9b35f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.800 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.801 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.802 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.802 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.803 [print] Beheer PDOK
57
* print operateson
0
05:06:25.803 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.804 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.805 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.806 [print] "true";"true"
76
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.146:82] d94b1eca-8a7d-4dc4-b979-36257878758f
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.298 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd94b1eca-8a7d-4dc4-b979-36257878758f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd94b1eca-8a7d-4dc4-b979-36257878758f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.841 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.841 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.842 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.842 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.843 [print] Beheer PDOK
57
* print operateson
0
05:06:25.843 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.845 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.846 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.847 [print] "true";"true"
76
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.147:82] 275b64ab-34c2-41f8-8904-97812c7f716e
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.401 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:25.925 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.925 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:25.926 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:25.927 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:25.927 [print] Beheer PDOK
57
* print operateson
0
05:06:25.928 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:25.929 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:25.930 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:25.931 [print] "true";"true"
76
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.148:82] 2b9da196-422e-4b0e-a5ba-ba41ade308e9
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.439 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:25.997 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:25.999 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:26.000 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.001 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:26.003 [print] Beheer PDOK
57
* print operateson
0
05:06:26.003 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.007 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:26.009 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.011 [print] "true";"true"
76
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.149:82] 9c4862c3-0bab-49c3-bc2f-ac5486826766
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.810 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:26.391 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:06:26.393 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:06:26.395 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.395 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
05:06:26.399 [print] Beheer PDOK
57
* print operateson
0
05:06:26.399 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.405 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:26.408 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.411 [print] "true";"true"
76
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.150:82] 1ce74355-763a-481d-b9d7-aaafbf0d7d53
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.851 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:26.399 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:26.401 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:26.402 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:26.403 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:26.405 [print] Beheer PDOK
57
* print operateson
1
05:06:26.405 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
05:06:26.409 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:26.411 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
3
05:06:26.415 [print] "true";"true"
76
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.151:82] 9c80458b-12c6-4d38-8f6d-387ab6e4ed21
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:25.935 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:26.466 [print] https://geodata.nationaalgeoregister.nl/natura2000/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:26.467 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:26.468 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.468 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:26.469 [print] Beheer PDOK
57
* print operateson
0
05:06:26.470 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.472 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:26.473 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.474 [print] "true";"true"
76
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.152:82] 7681eb19-a914-4dc7-9208-c2a131dca06d
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.016 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:26.543 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwater2015\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:26.543 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:26.544 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.544 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:26.545 [print] Beheer PDOK
57
* print operateson
0
05:06:26.545 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.547 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:26.548 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.549 [print] "true";"true"
76
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.153:82] 68722979-8d6c-4ee4-a81a-8381d2588fe5
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.421 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68722979-8d6c-4ee4-a81a-8381d2588fe5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68722979-8d6c-4ee4-a81a-8381d2588fe5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:26.974 [print] https://geodata.nationaalgeoregister.nl/nl/rws/hy-n/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:26.976 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:26.977 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.977 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:26.979 [print] Beheer PDOK
57
* print operateson
1
05:06:26.979 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.981 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:26.983 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.984 [print] "true";"true"
76
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.154:82] aaf53e6f-fe99-4a86-a61c-50b128412d80
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.419 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:26.945 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:26.946 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:26.947 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:26.948 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:26.949 [print] Beheer PDOK
57
* print operateson
1
05:06:26.949 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:26.951 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:26.953 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:26.954 [print] "true";"true"
76
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.155:82] 0bc2bcb8-558b-446b-b4e2-381b13d483a8
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.478 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:27.020 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:27.021 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:27.022 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.023 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:06:27.024 [print] Beheer PDOK
57
* print operateson
1
05:06:27.024 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.026 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:27.028 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.029 [print] "true";"true"
76
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.156:82] d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.558 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:27.087 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwateractueel\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:27.088 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:27.089 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.090 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:27.091 [print] Beheer PDOK
57
* print operateson
1
05:06:27.092 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.094 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:27.095 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.097 [print] "true";"true"
76
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.157:82] 42f5363b-cea7-4163-a4e9-bc2d1a7a243c
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.963 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:27.539 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegennacht/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:27.540 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:27.541 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.541 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:27.542 [print] Beheer PDOK
57
* print operateson
0
05:06:27.542 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.544 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:27.545 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.545 [print] "true";"true"
76
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.158:82] c374d556-7b6e-459b-83c7-74da6ad90a59
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:26.989 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c374d556-7b6e-459b-83c7-74da6ad90a59'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c374d556-7b6e-459b-83c7-74da6ad90a59'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:27.568 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:27.568 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:27.569 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.569 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:27.570 [print] Beheer PDOK
57
* print operateson
0
05:06:27.570 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.572 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:27.573 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.573 [print] "true";"true"
76
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.159:82] f76bdce5-344e-415f-8f2c-972755e80b65
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.034 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f76bdce5-344e-415f-8f2c-972755e80b65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f76bdce5-344e-415f-8f2c-972755e80b65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:27.582 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:27.583 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:27.584 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.584 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:27.584 [print] Beheer PDOK
57
* print operateson
0
05:06:27.585 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
17
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.602 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:27.604 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.605 [print] "true";"true"
76
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.160:82] 8e7686c3-f75e-411f-866e-6985267b916b
ms: 709
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.101 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8e7686c3-f75e-411f-866e-6985267b916b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8e7686c3-f75e-411f-866e-6985267b916b'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
8
34
* def title = get response //citation/CI_Citation/title/CharacterString
6
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
7
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
6
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
5
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:27.759 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
0
05:06:27.764 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
0
05:06:27.769 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:27.770 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
7
56
* print organisationpath
0
05:06:27.777 [print] Beheer PDOK
57
* print operateson
0
05:06:27.778 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
7
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
6
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:27.791 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
11
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:27.803 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
6
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:27.810 [print] "true";"true"
76
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.161:82] 4805aac3-9a8d-4fcd-851b-88c7b3d342e2
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.550 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:28.086 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.087 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.088 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.088 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.089 [print] Beheer PDOK
57
* print operateson
0
05:06:28.089 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.090 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.091 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
05:06:28.093 [print] "true";"true"
76
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.162:82] 3bfab77c-1663-4334-b7cb-b972de6096b1
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.577 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3bfab77c-1663-4334-b7cb-b972de6096b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3bfab77c-1663-4334-b7cb-b972de6096b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:28.121 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.122 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.123 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.123 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.124 [print] Beheer PDOK
57
* print operateson
0
05:06:28.124 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.126 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.126 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.127 [print] "true";"true"
76
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.163:82] 62dc32f1-853c-416a-876b-6e083554f1b6
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.609 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62dc32f1-853c-416a-876b-6e083554f1b6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62dc32f1-853c-416a-876b-6e083554f1b6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:28.182 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegenetmaal/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.182 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.183 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.184 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.185 [print] Beheer PDOK
57
* print operateson
0
05:06:28.185 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.187 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.188 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.189 [print] "true";"true"
76
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.164:82] 80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:27.815 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:28.345 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.346 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.347 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.347 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.349 [print] Beheer PDOK
57
* print operateson
0
05:06:28.349 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.350 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.351 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.352 [print] "true";"true"
76
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.165:82] a1ed8a00-da07-472e-9627-99175d437c94
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.098 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
3
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a1ed8a00-da07-472e-9627-99175d437c94'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1ed8a00-da07-472e-9627-99175d437c94'
10
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
9
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:28.668 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.669 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.670 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.670 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.671 [print] Beheer PDOK
57
* print operateson
0
05:06:28.671 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.673 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.674 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.676 [print] "true";"true"
76
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.166:82] e264c1e4-90fe-4968-bbf2-7019f6095348
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.132 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e264c1e4-90fe-4968-bbf2-7019f6095348'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e264c1e4-90fe-4968-bbf2-7019f6095348'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
3
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:28.685 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegenetmaal/wfs/v1_0?&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.686 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.687 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.687 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.689 [print] Beheer PDOK
57
* print operateson
0
05:06:28.689 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.693 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.694 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.695 [print] "true";"true"
76
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.167:82] e6c18185-719e-4729-8131-798dd9a69e8d
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.193 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e6c18185-719e-4729-8131-798dd9a69e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e6c18185-719e-4729-8131-798dd9a69e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:28.744 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.745 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.746 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:28.747 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.748 [print] Beheer PDOK
57
* print operateson
0
05:06:28.748 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.750 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.751 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.752 [print] "true";"true"
76
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.168:82] c474b492-da63-4a33-9bdd-b3709ce2cd6c
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.356 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:28.883 [print] https://service.pdok.nl/ienw/geluidskaartschipholnacht/wms/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:28.884 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:28.885 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
0
05:06:28.886 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:28.887 [print] Beheer PDOK
57
* print operateson
0
05:06:28.887 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:28.890 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:28.891 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:28.892 [print] "true";"true"
76
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.169:82] 7827b68f-647e-46cc-a02a-cac48eaa5dda
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.680 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7827b68f-647e-46cc-a02a-cac48eaa5dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7827b68f-647e-46cc-a02a-cac48eaa5dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:29.216 [print] https://service.pdok.nl/ienw/geluidskaartschipholnacht/wfs/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:29.217 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:29.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:29.218 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:29.219 [print] Beheer PDOK
57
* print operateson
0
05:06:29.219 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:29.221 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:29.222 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:29.223 [print] "true";"true"
76
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.170:82] 37e05521-c323-4dbe-aba4-de1178ba44a5
ms: 786
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.700 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37e05521-c323-4dbe-aba4-de1178ba44a5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
664
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37e05521-c323-4dbe-aba4-de1178ba44a5'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
27
34
* def title = get response //citation/CI_Citation/title/CharacterString
7
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
6
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
6
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
4
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:29.436 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
0
05:06:29.440 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
4
52
* print protocol2
0
05:06:29.444 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:29.445 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
6
56
* print organisationpath
0
05:06:29.451 [print] Beheer PDOK
57
* print operateson
0
05:06:29.451 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
6
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
7
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
05:06:29.467 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
6
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:29.474 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
11
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:29.486 [print] "true";"true"
76
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.171:82] e69bb2e9-eff4-4fb3-86a6-057cf628e761
ms: 781
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.757 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
600
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
5
34
* def title = get response //citation/CI_Citation/title/CharacterString
27
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
6
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
5
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
3
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
13
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:29.435 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
4
05:06:29.443 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
14
52
* print protocol2
9
05:06:29.467 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
4
05:06:29.471 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
5
56
* print organisationpath
7
05:06:29.483 [print] Beheer PDOK
57
* print operateson
0
05:06:29.483 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
25
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
5
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:29.514 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
12
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
2
05:06:29.527 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
5
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
05:06:29.534 [print] "true";"true"
76
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.172:82] 4f4c7848-1767-4c67-be08-87d45d07f313
ms: 687
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:28.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4f4c7848-1767-4c67-be08-87d45d07f313'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4f4c7848-1767-4c67-be08-87d45d07f313'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
11
34
* def title = get response //citation/CI_Citation/title/CharacterString
13
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
19
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
14
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:29.523 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:06:29.526 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
8
52
* print protocol2
1
05:06:29.535 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:06:29.536 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
4
05:06:29.543 [print] Beheer PDOK
57
* print operateson
0
05:06:29.544 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
29
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:29.576 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:29.580 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:29.584 [print] "true";"true"
76
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.173:82] 82541a1f-2e4e-459f-ab2f-e97cac3ad040
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:29.227 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:29.797 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:06:29.799 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:06:29.801 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:29.801 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:29.803 [print] Beheer PDOK
57
* print operateson
0
05:06:29.803 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:29.808 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:29.810 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:29.813 [print] "true";"true"
76
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.174:82] 9c5351c8-d8f4-41c2-9642-42a63496a6fe
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:29.497 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.087 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.088 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.090 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.090 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:30.092 [print] Beheer PDOK
57
* print operateson
0
05:06:30.092 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.096 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.098 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.100 [print] "true";"true"
76
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.175:82] a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:29.547 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
23
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.129 [print] https://service.pdok.nl/kadaster/lu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.130 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.131 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.131 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:30.132 [print] Beheer PDOK
57
* print operateson
0
05:06:30.132 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.133 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.134 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.135 [print] "true";"true"
76
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.176:82] 1fa220c2-5f2e-4943-a57e-c291cc35084b
ms: 650
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:29.588 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1fa220c2-5f2e-4943-a57e-c291cc35084b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
595
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1fa220c2-5f2e-4943-a57e-c291cc35084b'
16
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.220 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:06:30.222 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:06:30.224 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.225 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:30.227 [print] Beheer PDOK
57
* print operateson
0
05:06:30.227 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.232 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.235 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.238 [print] "true";"true"
76
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.177:82] af4841b5-ce83-4edb-af41-429a21140316
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:29.817 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'af4841b5-ce83-4edb-af41-429a21140316'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.411 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:06:30.413 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.415 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.415 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:30.417 [print] Beheer PDOK
57
* print operateson
0
05:06:30.417 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.421 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.424 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.426 [print] "true";"true"
76
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.178:82] b0119753-5625-4500-9df3-13823ff9868f
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.104 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b0119753-5625-4500-9df3-13823ff9868f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.666 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.667 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.668 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.669 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:30.671 [print] Beheer PDOK
57
* print operateson
0
05:06:30.671 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.675 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.677 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
16
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.693 [print] "true";"true"
76
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.179:82] a7aeddf2-3b37-4668-9c75-de93d9326276
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.139 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.703 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wms?request=Getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.704 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.705 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.705 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:30.706 [print] Beheer PDOK
57
* print operateson
0
05:06:30.706 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.708 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.709 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.710 [print] "true";"true"
76
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.180:82] 94e5b115-bece-4140-99ed-93b8f363948e
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.241 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94e5b115-bece-4140-99ed-93b8f363948e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.779 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.780 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.781 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.781 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:30.782 [print] Beheer PDOK
57
* print operateson
0
05:06:30.782 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.784 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.785 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.785 [print] "true";"true"
76
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.181:82] 1601e160-91e8-4091-9aca-10294f819d42
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.430 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1601e160-91e8-4091-9aca-10294f819d42'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:30.975 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:30.976 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:30.977 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:30.977 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:30.978 [print] Beheer PDOK
57
* print operateson
0
05:06:30.978 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:30.980 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:30.981 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:30.981 [print] "true";"true"
76
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.182:82] d1cb16ca-2029-454f-b3f1-f70bceaf62c1
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.699 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.273 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.274 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.275 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.275 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.276 [print] Beheer PDOK
57
* print operateson
0
05:06:31.276 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.277 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.278 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.279 [print] #notpresent
76
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.183:82] 33f3b24a-0b34-4153-9930-726d575a04d1
ms: 621
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.713 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '33f3b24a-0b34-4153-9930-726d575a04d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '33f3b24a-0b34-4153-9930-726d575a04d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
9
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.328 [print] https://service.pdok.nl/provincies/aardkundige-waarden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.329 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.330 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.330 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.330 [print] Beheer PDOK
57
* print operateson
0
05:06:31.330 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.332 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.332 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.333 [print] "true";"true"
76
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.184:82] c6308500-3439-4840-88cb-7532cabbfcb4
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
1
05:06:30.791 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.348 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.349 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.349 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.350 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.350 [print] KNMI
57
* print operateson
0
05:06:31.350 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.352 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.353 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.354 [print] true
76
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.185:82] 5523cfd7-a72c-409e-a0c7-89b858aafa64
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:30.985 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.517 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.518 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.518 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.519 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.519 [print] Beheer PDOK
57
* print operateson
0
05:06:31.519 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.521 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.522 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.522 [print] "true";"true"
76
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.186:82] d9cc67ba-5491-4640-86ac-b8d392250270
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.283 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9cc67ba-5491-4640-86ac-b8d392250270'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9cc67ba-5491-4640-86ac-b8d392250270'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.808 [print] https://service.pdok.nl/bzk/bro-bodemkaart/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.809 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.810 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.810 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.811 [print] Beheer PDOK
57
* print operateson
0
05:06:31.811 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.812 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.813 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.814 [print] "true";"true"
76
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.187:82] 26e2e9f4-be88-4c8c-bdef-94edfa93bde9
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.338 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.858 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.859 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.860 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.860 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.860 [print] Beheer PDOK
57
* print operateson
0
05:06:31.860 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.864 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.864 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.865 [print] "true";"true"
76
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.188:82] 757a7c50-540d-4105-9135-73f09f700743
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.357 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '757a7c50-540d-4105-9135-73f09f700743'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '757a7c50-540d-4105-9135-73f09f700743'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
8
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:31.915 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:31.915 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:31.916 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:31.916 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:31.917 [print] Beheer PDOK
57
* print operateson
0
05:06:31.917 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:31.918 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:31.919 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:31.920 [print] "true";"true"
76
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.189:82] 598c4109-21d2-4a6c-b083-9975a6736853
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.526 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736853'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
7
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:32.069 [print] https:\/\/geodata.nationaalgeoregister.nl\/weggeg\/wms?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:32.070 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.071 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.072 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.073 [print] Beheer PDOK
57
* print operateson
1
05:06:32.074 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=27df6b33-194c-46d6-ac94-257c306c91f2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.076 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:32.077 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.078 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.190:82] 3d143d7a-7599-4cda-bcc5-619b6201c47b
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.817 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d143d7a-7599-4cda-bcc5-619b6201c47b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d143d7a-7599-4cda-bcc5-619b6201c47b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:32.378 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.379 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.379 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.379 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.380 [print] Beheer PDOK
57
* print operateson
0
05:06:32.380 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.382 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:32.382 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.383 [print] "true";"true"
76
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.191:82] 03c48a93-1e31-4c69-92c6-9a7efecf67a9
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.869 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:32.412 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.413 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.413 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.414 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.414 [print] Beheer PDOK
57
* print operateson
0
05:06:32.414 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.417 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:32.418 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.419 [print] "true";"true"
76
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.192:82] 4041f923-6b77-4816-bf46-437e85416c31
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:31.923 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4041f923-6b77-4816-bf46-437e85416c31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:32.488 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnmarienestrategie2018\/wms\/v1_0?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.489 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.489 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.490 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.490 [print] Beheer PDOK
57
* print operateson
0
05:06:32.491 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.492 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:32.493 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.494 [print] "true";"true"
76
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.193:82] 008d85d1-460d-46f6-9af4-98afdedbc4dc
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.083 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:32.621 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.622 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.622 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.622 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.623 [print] Beheer PDOK
57
* print operateson
0
05:06:32.623 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.625 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs ."
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:32.625 [print] "Deze service voldoet aan specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:32.627 [print] "true";"true";"true"
76
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.194:82] f917ffa9-1531-48ea-867e-0d413d85b05a
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.389 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:32.948 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.948 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.949 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.949 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:32.950 [print] Beheer PDOK
57
* print operateson
0
05:06:32.950 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
5
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:32.957 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:32.958 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.959 [print] "true";"true"
76
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.195:82] 171b28f6-7ee7-46f9-b3b3-06d0baaa33db
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.422 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:32.966 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:32.967 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:32.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:32.968 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:32.970 [print] Beheer PDOK
57
* print operateson
0
05:06:32.970 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:32.972 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:32.973 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:32.974 [print] "true";"true"
76
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.196:82] f57bdee7-4027-4aa2-8312-4051b854be3c
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.508 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:33.076 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.077 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.078 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.078 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.079 [print] Beheer PDOK
57
* print operateson
0
05:06:33.079 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.080 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:33.081 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.081 [print] "true";"true"
76
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.197:82] 972edbaa-f860-4c48-b449-4f238a263472
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.631 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '972edbaa-f860-4c48-b449-4f238a263472'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
9
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:33.181 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.182 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.183 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.183 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.185 [print] Beheer PDOK
57
* print operateson
0
05:06:33.185 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.187 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:33.188 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.189 [print] "true";"true"
76
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.198:82] 3dc373ae-fcf6-49c9-b315-9a2178bffe4a
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.963 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:33.501 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.502 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.503 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.503 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.504 [print] Beheer PDOK
57
* print operateson
0
05:06:33.504 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.506 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:33.506 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.507 [print] "true";"true"
76
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.199:82] 627b50bf-2e33-4beb-a314-ff8c0fe8912e
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:32.977 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:33.519 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.520 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.521 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.521 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.522 [print] Beheer PDOK
57
* print operateson
0
05:06:33.522 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.524 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:33.525 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.526 [print] "true";"true"
76
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.200:82] a84f9836-9111-4e45-a311-3dab39019e15
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.085 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a84f9836-9111-4e45-a311-3dab39019e15'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a84f9836-9111-4e45-a311-3dab39019e15'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:33.619 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.620 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.621 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.621 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.622 [print] Beheer PDOK
57
* print operateson
0
05:06:33.622 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.624 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:33.625 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.625 [print] "true";"true"
76
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.201:82] 4074b3c3-ca85-45ad-bc0d-b5fca8540c0a
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.193 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
9
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:33.733 [print] https://geodata.nationaalgeoregister.nl/vin/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:33.734 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:33.735 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:33.735 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:33.736 [print] Beheer PDOK
57
* print operateson
0
05:06:33.736 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:33.738 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:33.739 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:33.741 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.202:82] 018a28a5-1019-4747-b031-f66ffc1c6ae7
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.511 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '018a28a5-1019-4747-b031-f66ffc1c6ae7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '018a28a5-1019-4747-b031-f66ffc1c6ae7'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.052 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:06:34.055 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.056 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.056 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.057 [print] Beheer PDOK
57
* print operateson
0
05:06:34.057 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.059 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:34.060 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.061 [print] "true";"true"
76
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.203:82] a57c1e86-becb-4e3f-b0ad-6d02cea5583d
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.530 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
2
25
And param request = 'GetRecordById'
0
26
And param id = 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.074 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:34.075 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.076 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.076 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.078 [print] Beheer PDOK
57
* print operateson
0
05:06:34.079 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:34.080 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:34.082 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.083 [print] "true";"true"
76
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.204:82] 4fb15e0d-d88f-40f1-b407-3d3edcf7e184
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.629 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
2
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:34.158 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:34.159 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.160 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.161 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.162 [print] Beheer PDOK
57
* print operateson
0
05:06:34.162 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.164 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:34.165 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.167 [print] "true";"true"
76
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.205:82] 8abcd2d1-3beb-43e5-a572-2b2da05a0a98
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:33.745 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
14
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.289 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:34.290 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.291 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.291 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
1
05:06:34.294 [print] Beheer PDOK
57
* print operateson
1
05:06:34.294 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.296 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:34.298 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.299 [print] "true";"true"
76
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.206:82] 578f993f-4d0b-4c4a-a08b-dfa9e1d1376e
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.065 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.600 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:34.601 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.602 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.603 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.604 [print] Beheer PDOK
57
* print operateson
0
05:06:34.604 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.606 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:34.607 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.608 [print] "true";"true"
76
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.207:82] 7977f282-433e-41f9-940b-63f5d28ee44c
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.086 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7977f282-433e-41f9-940b-63f5d28ee44c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7977f282-433e-41f9-940b-63f5d28ee44c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.633 [print] https://service.pdok.nl/provincies/stiltegebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:34.634 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.635 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.635 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.635 [print] Beheer PDOK
57
* print operateson
0
05:06:34.636 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.637 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:34.640 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.640 [print] "true";"true"
76
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.208:82] 4ce823b4-94b4-4d24-8512-519179315878
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.171 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ce823b4-94b4-4d24-8512-519179315878'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ce823b4-94b4-4d24-8512-519179315878'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:34.719 [print] https://service.pdok.nl/provincies/provinciale-monumenten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:34.720 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:34.720 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.720 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:34.721 [print] Beheer PDOK
57
* print operateson
0
05:06:34.721 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.722 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:34.723 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.724 [print] "true";"true"
76
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.209:82] cea38797-ea4b-4969-b979-8d25eb543a6c
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.303 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cea38797-ea4b-4969-b979-8d25eb543a6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cea38797-ea4b-4969-b979-8d25eb543a6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:34.850 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
9
50
* print protocol1
0
05:06:34.859 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:34.860 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:34.860 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
7
56
* print organisationpath
0
05:06:34.867 [print] Beheer PDOK
57
* print operateson
0
05:06:34.868 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:34.869 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:34.870 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:34.871 [print] "true";"true"
76
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.210:82] 3ac5737f-55ed-455d-8350-44af11b67fc3
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.612 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.166 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.166 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.167 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.167 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.168 [print] Beheer PDOK
57
* print operateson
0
05:06:35.168 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.169 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.170 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.171 [print] "true";"true"
76
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.211:82] 027e3f15-3b58-4570-97bb-779ce3ca947e
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.644 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.189 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.189 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.190 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.190 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.191 [print] Beheer PDOK
57
* print operateson
0
05:06:35.191 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.192 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.193 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.194 [print] "true";"true"
76
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.212:82] 3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.727 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.258 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.259 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.260 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.260 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.260 [print] Beheer PDOK
57
* print operateson
0
05:06:35.260 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.262 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:35.264 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.265 [print] "true";"true"
76
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.213:82] caeb52a3-cbaa-4e9b-a23e-d4dc0335b506
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:34.876 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
8
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.437 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.438 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.439 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.439 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.440 [print] Beheer PDOK
57
* print operateson
0
05:06:35.440 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.442 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.443 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.448 [print] "true";"true"
76
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.214:82] e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.175 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.705 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.706 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.707 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.707 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.708 [print] Beheer PDOK
57
* print operateson
0
05:06:35.708 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.709 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.710 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.711 [print] "true";"true"
76
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.215:82] c78a99eb-9ba3-4307-a21b-2a64ad5da039
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.197 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:35.799 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:35.800 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.801 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.801 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.802 [print] Beheer PDOK
57
* print operateson
0
05:06:35.802 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.803 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.804 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.805 [print] "true";"true"
76
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.216:82] 60dc9632-50c8-40b1-ac63-cd91b85352d2
ms: 620
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '60dc9632-50c8-40b1-ac63-cd91b85352d2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
600
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60dc9632-50c8-40b1-ac63-cd91b85352d2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:35.881 [print] https://service.pdok.nl/cbs/wb2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:35.882 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.883 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.884 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.885 [print] Beheer PDOK
57
* print operateson
1
05:06:35.885 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:35.887 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:35.888 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.890 [print] "true";"true";"true"
76
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.217:82] 57844c27-ff48-4e0b-9321-174d83829a19
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.452 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '57844c27-ff48-4e0b-9321-174d83829a19'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '57844c27-ff48-4e0b-9321-174d83829a19'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
18
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:35.991 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:35.992 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:35.993 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:35.993 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:35.994 [print] Beheer PDOK
57
* print operateson
0
05:06:35.995 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:35.997 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:35.998 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:35.999 [print] "true";"true"
76
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.218:82] 82a98057-861b-4c69-9b8e-fe1a7d7bdd29
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.715 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:36.260 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.261 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.261 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.262 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.262 [print] Beheer PDOK
57
* print operateson
0
05:06:36.263 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.264 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.265 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.266 [print] "true";"true"
76
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.219:82] a6341e75-0dff-4948-9317-433324ab483b
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.809 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6341e75-0dff-4948-9317-433324ab483b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6341e75-0dff-4948-9317-433324ab483b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:36.344 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/wms/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.345 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.346 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.346 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.347 [print] Beheer PDOK
57
* print operateson
0
05:06:36.347 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.349 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.349 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.350 [print] "true";"true"
76
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.220:82] 89b35a6c-c099-456b-8eaf-2b83c7a35c74
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:35.894 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:36.432 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.434 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.434 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.435 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.436 [print] Beheer PDOK
57
* print operateson
0
05:06:36.436 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.438 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.439 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.440 [print] "true";"true"
76
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.221:82] d7d19437-f875-45b3-86cd-2fa3335479ec
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.003 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:36.537 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.538 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.539 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.539 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.540 [print] Beheer PDOK
57
* print operateson
0
05:06:36.540 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.541 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.542 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.543 [print] "true";"true"
76
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.222:82] 2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.269 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:36.805 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.806 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.807 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
0
05:06:36.808 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.809 [print] Beheer PDOK
57
* print operateson
0
05:06:36.809 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=rorl-9d8e-4758-83fx-28b057f185g1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.811 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.812 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.813 [print] "true";"true"
76
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.223:82] 01d4dab6-03ad-4e82-b719-4daf8b96ea14
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.354 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:36.908 [print] https://service.pdok.nl/kadaster/au/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:36.909 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.909 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.909 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.910 [print] Beheer PDOK
57
* print operateson
0
05:06:36.910 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.912 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.912 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.913 [print] "true";"true"
76
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.224:82] bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.444 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
8
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:36.987 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:36.987 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:36.988 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:36.989 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:36.990 [print] Beheer PDOK
57
* print operateson
0
05:06:36.990 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:36.992 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:36.993 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:36.994 [print] "true";"true"
76
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.225:82] bc0b75c6-3eef-49de-aca2-8483024903c1
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.547 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.084 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.084 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.085 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.085 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:37.086 [print] Beheer PDOK
57
* print operateson
0
05:06:37.086 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.088 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:37.089 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.090 [print] "true";"true"
76
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.226:82] 918388cf-9d8c-4264-b108-3e375bde0d52
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.817 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.380 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.381 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.382 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.382 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:37.383 [print] Beheer PDOK
57
* print operateson
0
05:06:37.383 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.384 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:37.385 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.386 [print] "true";"true"
76
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.227:82] 1bd24d1e-aa13-4395-809e-893570f7c651
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.917 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.453 [print] https://geodata.nationaalgeoregister.nl/overheidsdiensten/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.454 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.455 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.455 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
9
56
* print organisationpath
0
05:06:37.464 [print] Beheer PDOK
57
* print operateson
0
05:06:37.464 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.466 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:37.466 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.467 [print] "true";"true"
76
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.228:82] 40f04047-3b61-40eb-b026-c1a0caa71881
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:36.998 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.538 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.538 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.539 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.539 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:37.540 [print] Beheer PDOK
57
* print operateson
0
05:06:37.540 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.542 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:37.543 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.545 [print] "true";"true"
76
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.229:82] ceda1b88-32ac-40b2-a841-71eb041c9427
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.094 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.625 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.626 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.627 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.627 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:37.628 [print] Beheer PDOK
57
* print operateson
0
05:06:37.628 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.630 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:37.631 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.632 [print] "true";"true"
76
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.230:82] 6c62e0a5-c215-4e47-94b0-a239e264417d
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.390 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
10
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
3
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.956 [print] https:\/\/geodata.nationaalgeoregister.nl\/plu\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:06:37.959 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.961 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.961 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:37.963 [print] Beheer PDOK
57
* print operateson
0
05:06:37.964 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.967 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:37.970 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:37.972 [print] "true";"true"
76
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.231:82] 598c4109-21d2-4a6c-b083-9975a6736849
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.471 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:37.995 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbvaarwegen\/wms?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:37.996 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:37.997 [print] ["OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:37.997 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:37.998 [print] Beheer PDOK
57
* print operateson
0
05:06:37.998 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:37.999 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:38.000 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.001 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.232:82] 62c0d0a5-5826-406d-a625-d84bc5fec800
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.549 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62c0d0a5-5826-406d-a625-d84bc5fec800'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62c0d0a5-5826-406d-a625-d84bc5fec800'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:38.079 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:38.080 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:38.081 [print] ["OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.081 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:38.082 [print] Beheer PDOK
57
* print operateson
0
05:06:38.082 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:38.084 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:38.085 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.086 [print] "true";"true"
76
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.233:82] f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.637 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
9
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:38.172 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbwegen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:38.173 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:38.174 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.174 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:38.175 [print] Beheer PDOK
57
* print operateson
0
05:06:38.175 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:38.176 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:38.177 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.178 [print] "true";"true"
76
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.234:82] 5be14ec9-9bb3-4395-a061-e7e78d04a527
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:37.976 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:38.497 [print] https://geodata.nationaalgeoregister.nl/inspire/bu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:38.498 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:38.499 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.499 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:38.500 [print] Beheer PDOK
57
* print operateson
0
05:06:38.500 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:38.502 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:38.503 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.505 [print] "true";"true"
76
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.235:82] 23aa5150-fcc7-46ea-ae63-a7f198d8bc18
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.005 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:38.535 [print] https://inspire.rivm.nl/geoserver/airq/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:38.536 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:38.536 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.537 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:38.538 [print] RIVM
57
* print operateson
0
05:06:38.538 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:38.540 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
9
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:38.548 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.549 [print] "true";"true";"true"
76
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.236:82] 93a9571d-1754-47ee-a8f9-92633abfab3a
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.090 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
5
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:38.646 [print] https://service.pdok.nl/rvo/invasieve-exoten/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:38.647 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:38.648 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.648 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
05:06:38.652 [print] Beheer PDOK
57
* print operateson
0
05:06:38.653 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3703b249-a0eb-484e-ba7a-10e31a55bcec&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:38.655 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:38.656 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:38.657 [print] "true";"true";"true"
76
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.237:82] b196f948-5d87-4eb4-9854-a93841c3877f
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.185 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:38.710 [print] https://service.pdok.nl/rvo/invasieve-exoten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:38.711 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:38.712 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:38.713 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:38.714 [print] Beheer PDOK
57
* print operateson
0
05:06:38.714 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:38.716 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:38.717 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:06:38.719 [print] "true";"true"
76
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.238:82] 2e5571fb-c840-4d84-8224-62ee7293b2b3
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.509 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e5571fb-c840-4d84-8224-62ee7293b2b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e5571fb-c840-4d84-8224-62ee7293b2b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
7
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:39.078 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.079 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.079 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.079 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.080 [print] Beheer PDOK
57
* print operateson
0
05:06:39.080 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.082 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.082 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.083 [print] "true";"true"
76
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.239:82] 504afbe6-0069-411b-b69b-2aae3728f73b
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.553 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '504afbe6-0069-411b-b69b-2aae3728f73b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '504afbe6-0069-411b-b69b-2aae3728f73b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.102 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.102 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.103 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.103 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.104 [print] Rijkswaterstaat
57
* print operateson
0
05:06:39.104 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.105 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.106 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
5
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.111 [print] "true";"true"
76
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"504afbe6-0069-411b-b69b-2aae3728f73b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.240:82] 70bf4086-b557-4803-96d3-6dc397a5b135
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.661 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '70bf4086-b557-4803-96d3-6dc397a5b135'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '70bf4086-b557-4803-96d3-6dc397a5b135'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.185 [print] https://inspire.caris.nl/geoserver/baseline/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.186 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.187 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.187 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.188 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:39.188 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.189 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.190 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.191 [print] "true";"true"
76
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.241:82] 2dd6c9df-bb47-40eb-af39-2d17f09b9bb9
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:38.723 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.243 [print] https://www.gdngeoservices.nl/inspire/wms/oppervlaktegeologie?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.244 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.244 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.245 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.245 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:39.245 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.247 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.247 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.248 [print] "true";"false"
76
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.242:82] c99b1291-c51f-49c8-902d-5bd4148cbbde
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.087 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.616 [print] http:\/\/services.inspire-provincies.nl\/HabitatsAndBiotopes\/services\/view_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.616 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.617 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.617 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.618 [print] Interprovinciaal Overleg
57
* print operateson
0
05:06:39.618 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.620 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.621 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.622 [print] "false";"true";"true"
76
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.243:82] 8a772a52-d659-47b3-a131-82398fb78664
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.115 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a772a52-d659-47b3-a131-82398fb78664'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.673 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.674 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.675 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.675 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.676 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:39.676 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.677 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.678 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.679 [print] true
76
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.244:82] 7f79fc69-d0c7-4913-a05a-527c90453297
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.195 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297'
7
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.746 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:39.747 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:39.748 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.748 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.748 [print] KNMI
57
* print operateson
0
05:06:39.748 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.750 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.751 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.751 [print] true
76
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.245:82] 931b1a00-ad24-4eed-a73c-cb5441056136
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.252 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '931b1a00-ad24-4eed-a73c-cb5441056136'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '931b1a00-ad24-4eed-a73c-cb5441056136'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:39.774 [print] https://service.pdok.nl/rvo/nationaleparken/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:39.774 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:39.775 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:39.775 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:39.776 [print] Beheer PDOK
57
* print operateson
0
05:06:39.776 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:39.777 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:39.778 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:39.778 [print] "true";"true"
76
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.246:82] 62b01550-9007-4634-b008-bd6071b34b2c
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.625 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62b01550-9007-4634-b008-bd6071b34b2c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62b01550-9007-4634-b008-bd6071b34b2c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.156 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.157 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.158 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.158 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.159 [print] KNMI
57
* print operateson
0
05:06:40.159 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.160 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.161 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.162 [print] true
76
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.247:82] e258f171-6f56-4d4d-8311-027b30213c2d
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.682 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.213 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:40.214 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.215 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.215 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.216 [print] Beheer PDOK
57
* print operateson
0
05:06:40.217 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.219 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:40.220 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.221 [print] "true";"true"
76
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.248:82] 710a6a9b-c09f-4660-b15a-2d5bee27e7e3
ms: 521
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.755 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.270 [print] https://service.pdok.nl/cbs/gebiedsindelingen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.271 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.272 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.272 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.273 [print] Beheer PDOK
57
* print operateson
0
05:06:40.273 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.274 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.275 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.276 [print] "true";"true"
76
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.249:82] 08a784fe-0da8-4ede-bec9-c28fa81fc11d
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:39.781 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
6
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:40.328 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.329 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.329 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.330 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.331 [print] Beheer PDOK
57
* print operateson
1
05:06:40.331 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.333 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:40.334 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.335 [print] "true";"true"
76
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.250:82] c21c6bf5-8899-4b46-8986-0f65eca05ed0
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.166 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
580
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.755 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnstedelijkafvalwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.755 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.756 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.756 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.757 [print] Beheer PDOK
57
* print operateson
0
05:06:40.757 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.758 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.759 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.760 [print] "true";"true"
76
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.251:82] b914aa84-1a15-4d6c-950e-00c739946029
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.225 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b914aa84-1a15-4d6c-950e-00c739946029'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b914aa84-1a15-4d6c-950e-00c739946029'
9
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.800 [print] https://service.pdok.nl/rvo/restwarmte/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.801 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.802 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.802 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.803 [print] Beheer PDOK
57
* print operateson
0
05:06:40.803 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.804 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.805 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.805 [print] "true";"true"
76
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.252:82] 7a748a59-36f4-475b-9647-402b5ce89a1c
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.279 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.820 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.820 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.821 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.821 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.822 [print] Beheer PDOK
57
* print operateson
0
05:06:40.822 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.824 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.825 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.826 [print] "true";"true"
76
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.253:82] 0898d4a9-8fe6-46e9-8855-1242d8028970
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.339 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0898d4a9-8fe6-46e9-8855-1242d8028970'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0898d4a9-8fe6-46e9-8855-1242d8028970'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:40.867 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:40.868 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:40.869 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:40.869 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:40.870 [print] Beheer PDOK
57
* print operateson
0
05:06:40.870 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185f1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:40.871 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:40.872 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:40.873 [print] "true";"true"
76
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.254:82] deaf8380-ad45-48d2-8c3e-81164471bafb
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.764 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deaf8380-ad45-48d2-8c3e-81164471bafb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deaf8380-ad45-48d2-8c3e-81164471bafb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.284 [print] https://service.pdok.nl/cbs/vk500/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.285 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.285 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.286 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.286 [print] Beheer PDOK
57
* print operateson
0
05:06:41.286 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.288 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.289 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.289 [print] "true";"true"
76
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.255:82] 2931d583-9633-49d3-ad38-aabea82f6751
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.810 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2931d583-9633-49d3-ad38-aabea82f6751'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.347 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.347 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:41.348 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.348 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.349 [print] Beheer PDOK
57
* print operateson
0
05:06:41.349 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.350 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.351 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
9
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.360 [print] "true";"true"
76
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.256:82] 47d416f8-76e8-441c-9b19-c8f889dfe62c
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.829 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47d416f8-76e8-441c-9b19-c8f889dfe62c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47d416f8-76e8-441c-9b19-c8f889dfe62c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.367 [print] https://service.pdok.nl/kadaster/gn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
0
05:06:41.370 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.371 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.371 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.372 [print] Beheer PDOK
57
* print operateson
0
05:06:41.373 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.375 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:41.376 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.377 [print] "true";"true"
76
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.257:82] 0080a9ce-b836-45bc-8fdf-07dcbe97101d
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:40.879 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:41.403 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.404 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.405 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.405 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.406 [print] Beheer PDOK
57
* print operateson
0
05:06:41.407 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:41.409 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:41.410 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.411 [print] "true";"true"
76
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.258:82] 037e55bd-a1dc-4fde-adfe-4610d3a3d5cb
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.293 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.865 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.866 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.867 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.867 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.868 [print] Beheer PDOK
57
* print operateson
0
05:06:41.868 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.869 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.870 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.871 [print] "true";"true"
76
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.259:82] 13e4dff0-1e80-11e2-81c1-0800200c9a66
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.365 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.889 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.889 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.890 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.890 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.891 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:41.891 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.893 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.898 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.899 [print] "true";"true"
76
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.260:82] 54122631-d343-40be-9c28-e44626b37a0e
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.389 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '54122631-d343-40be-9c28-e44626b37a0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.946 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.947 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.948 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.948 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.948 [print] Beheer PDOK
57
* print operateson
0
05:06:41.949 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.950 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.951 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.952 [print] "true";"true"
76
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.261:82] fe4b36d5-8f69-403f-b084-ce010a4ae3b2
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.415 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:41.955 [print] https://service.pdok.nl/rvo/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:41.957 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:41.958 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:41.958 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:41.959 [print] Beheer PDOK
57
* print operateson
0
05:06:41.959 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:41.960 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:41.961 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:41.962 [print] "true";"true"
76
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.262:82] 1512b29e-80d4-4677-bcae-a3f9f82a223d
ms: 615
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.875 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1512b29e-80d4-4677-bcae-a3f9f82a223d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1512b29e-80d4-4677-bcae-a3f9f82a223d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
7
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
13
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:42.479 [print] https://service.pdok.nl/brt/top10nl/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:42.480 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:42.481 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:42.481 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:42.482 [print] Beheer PDOK
57
* print operateson
0
05:06:42.482 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=29d5310f-dd0d-45ba-abad-b4ffc6b8785f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
05:06:42.486 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
2
05:06:42.489 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:42.490 [print] "true";"true"
76
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.263:82] bb85e473-c04a-42a6-9fdc-f0bb0239327e
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.903 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:42.453 [print] https://service.pdok.nl/kadaster/gebouwen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:42.453 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:42.454 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:42.454 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:42.455 [print] Beheer PDOK
57
* print operateson
0
05:06:42.455 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:42.456 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:42.457 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
05:06:42.460 [print] "true";"true"
76
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.264:82] dc250a60-0ac6-487f-8a42-cb4f67582f34
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:42.478 [print] https://service.pdok.nl/kadaster/ad/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:42.479 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
3
05:06:42.483 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:42.483 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:42.484 [print] Beheer PDOK
57
* print operateson
0
05:06:42.484 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:42.485 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:42.487 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:42.488 [print] "true";"true"
76
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.265:82] e27e61d8-25b1-45ee-a2df-071312ba8a69
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:41.965 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:42.510 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwateractueel/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:42.510 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:42.511 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:42.511 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:42.512 [print] Beheer PDOK
57
* print operateson
0
05:06:42.512 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:42.514 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
14
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:42.528 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:42.528 [print] "true";"true";"true"
76
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.266:82] 88a337a9-bed3-4d79-80fa-ff4b45990d7d
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:42.464 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
4
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.014 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:43.014 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:43.015 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.015 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
7
56
* print organisationpath
0
05:06:43.023 [print] Beheer PDOK
57
* print operateson
0
05:06:43.023 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
9
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.032 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.033 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.034 [print] "true";"true"
76
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.267:82] 68a7e4c1-0073-4a1a-a6df-084d2badf45a
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:42.497 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.078 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:43.079 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:43.079 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.080 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:43.080 [print] Beheer PDOK
57
* print operateson
0
05:06:43.080 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.081 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.082 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.083 [print] "true";"true"
76
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.268:82] 0017219b-fb75-47aa-a6bf-496f2514e545
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:42.495 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
3
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0017219b-fb75-47aa-a6bf-496f2514e545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0017219b-fb75-47aa-a6bf-496f2514e545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.030 [print] https://service.pdok.nl/provincies/aardkundige-waarden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:43.030 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:43.031 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.031 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
5
56
* print organisationpath
0
05:06:43.036 [print] Beheer PDOK
57
* print operateson
0
05:06:43.036 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:43.039 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:43.040 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.041 [print] "true";"true"
76
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.269:82] 77971fa3-f869-4726-969a-482e0b1a8c5d
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:42.532 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.100 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:43.101 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:43.101 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.102 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:43.102 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:43.102 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.104 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.104 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.105 [print] "true";"true"
76
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.270:82] 7c651e06-858e-4184-8de3-da9def9c6fd0
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.037 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c651e06-858e-4184-8de3-da9def9c6fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c651e06-858e-4184-8de3-da9def9c6fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.576 [print] https://service.pdok.nl/bzk/bro-bodemkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:43.576 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:43.577 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.577 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:43.578 [print] Beheer PDOK
57
* print operateson
0
05:06:43.578 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.579 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.580 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.581 [print] "true";"true"
76
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.271:82] 7358a8bc-42db-4eeb-9b3e-a081f7803b45
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.044 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.618 [print] https://service.pdok.nl/kadaster/au/atom/v2_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:43.618 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:43.619 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.619 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
5
56
* print organisationpath
0
05:06:43.624 [print] Beheer PDOK
57
* print operateson
0
05:06:43.624 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.625 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.626 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.627 [print] "true";"true"
76
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.272:82] 93c8762c-4cbb-42b0-9b02-89ef902e8880
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.086 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93c8762c-4cbb-42b0-9b02-89ef902e8880'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93c8762c-4cbb-42b0-9b02-89ef902e8880'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:43.692 [print] https://service.pdok.nl/provincies/ps/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:43.693 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:43.694 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.694 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:43.695 [print] Beheer PDOK
57
* print operateson
0
05:06:43.695 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.697 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.698 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.698 [print] "true";"true"
76
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.273:82] 8fb3a06d-af1a-4da9-a769-41edf3591805
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.108 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8fb3a06d-af1a-4da9-a769-41edf3591805'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8fb3a06d-af1a-4da9-a769-41edf3591805'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:43.702 [print] https://service.pdok.nl/provincies/stiltegebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
7
50
* print protocol1
0
05:06:43.709 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:06:43.710 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:43.711 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:43.712 [print] Beheer PDOK
57
* print operateson
0
05:06:43.712 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:43.714 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:43.715 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:43.716 [print] "true";"true"
76
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.274:82] 101304f0-2cf2-4ce0-aa23-cd7e4000fbba
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.585 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.144 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:44.144 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:44.145 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.145 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.146 [print] Beheer PDOK
57
* print operateson
0
05:06:44.146 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.147 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.148 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.148 [print] "true";"true"
76
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.275:82] 15d2aa2a-1e55-4ca4-986b-0d12768675a1
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.631 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.156 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.157 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
0
05:06:44.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.163 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.164 [print] Beheer PDOK
57
* print operateson
4
05:06:44.169 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:44.170 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:44.173 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.173 [print] "true";"true"
76
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.276:82] 9ad3f0c0-9e2c-4d44-a467-b57920aa512f
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.710 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
5
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.281 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.282 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.282 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.282 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.283 [print] Beheer PDOK
57
* print operateson
0
05:06:44.283 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.284 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.285 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.286 [print] "true";"true"
76
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.277:82] 559f7f5b-44fc-4003-9fb5-4d8c9aff6060
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:43.719 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.245 [print] https://service.pdok.nl/kadaster/tn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.246 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.247 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.247 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.248 [print] Beheer PDOK
57
* print operateson
0
05:06:44.248 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.250 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.250 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.251 [print] "true";"true"
76
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.278:82] f38ea40d-9029-465c-9db2-c8a3099e21a2
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.152 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:44.673 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.674 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.675 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.675 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.676 [print] Beheer PDOK
57
* print operateson
0
05:06:44.677 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.678 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.679 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.680 [print] "true";"true"
76
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.279:82] 91b1f8ca-63a0-4ce6-b7e1-456ee6945638
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.177 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:44.724 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.725 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.726 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.726 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.727 [print] Beheer PDOK
57
* print operateson
0
05:06:44.728 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.729 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.730 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.731 [print] "true";"true"
76
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.280:82] 80acf20e-66fd-4276-b218-7a045699245a
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.255 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '80acf20e-66fd-4276-b218-7a045699245a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
597
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80acf20e-66fd-4276-b218-7a045699245a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.860 [print] https://service.pdok.nl/rws/geluidbelasting/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
0
05:06:44.864 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.865 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.865 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.866 [print] Beheer PDOK
57
* print operateson
1
05:06:44.866 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.869 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.871 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.872 [print] "true";"true"
76
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.281:82] 181b54ed-14d2-4fda-bae7-747972340f2f
ms: 618
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.291 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '181b54ed-14d2-4fda-bae7-747972340f2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '181b54ed-14d2-4fda-bae7-747972340f2f'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:44.902 [print] https://service.pdok.nl/provincies/provinciale-monumenten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:44.903 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:44.904 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:44.904 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:44.905 [print] Beheer PDOK
57
* print operateson
0
05:06:44.905 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:44.906 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:44.907 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:44.908 [print] "true";"true"
76
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.282:82] ef2a7962-8bb4-483f-ac78-851b619f357f
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.684 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.231 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.232 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.233 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.233 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.234 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
05:06:45.234 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.236 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.237 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Open Search mechanisme van het Nationaal Georegister functioneert nog niet naar behoren."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.238 [print] "true";"false"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.283:82] 5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.735 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
4
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.262 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.263 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.264 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.264 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.265 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:45.266 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.267 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.269 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.270 [print] "false";"false"
76
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.284:82] a931e334-b752-4935-8a98-00eddc443789
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.877 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a931e334-b752-4935-8a98-00eddc443789'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.399 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.400 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.401 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.401 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.402 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:45.402 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
4
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.407 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.408 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.409 [print] "false";"false"
76
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.285:82] 01572637-b851-4cc3-b06a-56c1ae1115cc
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:44.912 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.443 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.444 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.445 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.446 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.447 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:45.447 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.449 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.450 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.451 [print] "false";"false"
76
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.286:82] b9fa42a0-41f9-4405-a593-d51721939222
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.245 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b9fa42a0-41f9-4405-a593-d51721939222'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b9fa42a0-41f9-4405-a593-d51721939222'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.764 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wfs/v1_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.764 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.765 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.765 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.766 [print] Beheer PDOK
57
* print operateson
0
05:06:45.766 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.768 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
4
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.772 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.773 [print] "true";"true";"true"
76
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.287:82] 97b49056-8ace-426c-ae3e-bf7efe4c000f
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.274 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.807 [print] https://inspire.caris.nl/geoserver/baselinews/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.807 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.808 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.808 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.809 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:45.809 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.810 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.811 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.812 [print] "true";"true"
76
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.288:82] f0eb64f9-8888-42e1-9550-bf91c32da4bc
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.413 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
5
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:45.940 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.941 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.942 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.942 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.942 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:45.943 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.944 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:45.945 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.946 [print] "false";"false"
76
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.289:82] 3e65fa1b-9bb1-41bd-9760-76962751b839
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.455 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:45.989 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wms\/v2_0?service=WMS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:45.990 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:45.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:45.992 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:45.993 [print] Beheer PDOK
57
* print operateson
0
05:06:45.993 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:45.995 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:45.996 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:45.997 [print] "true";"true"
76
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.290:82] a2724dae-ebad-4a07-9405-49bddfde3368
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.777 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
5
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:46.318 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wfs\/v2_0?service=WFS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:46.319 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:46.320 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.320 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
4
56
* print organisationpath
1
05:06:46.324 [print] Beheer PDOK
57
* print operateson
1
05:06:46.325 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:46.327 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:46.330 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.332 [print] "true";"true"
76
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
7
Scenario: [1.291:82] 060d1139-c371-4c1e-9890-55999adfa4f9
ms: 518
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.816 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
505
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:46.328 [print] https://inspire.caris.nl/geoserver/boundary/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:46.328 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
1
05:06:46.329 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.330 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:46.330 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:46.330 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:46.332 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:46.333 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.334 [print] "true";"true"
76
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.292:82] 56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:45.950 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:46.469 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
11
50
* print protocol1
0
05:06:46.480 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:46.481 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.481 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:46.482 [print] Beheer PDOK
57
* print operateson
0
05:06:46.482 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:46.483 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:46.484 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.485 [print] #notpresent
76
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.293:82] 9ff1a13c-d1e0-4150-8523-91cb489ae1a4
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.005 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
9
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
13
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:46.547 [print] https://geodata.nationaalgeoregister.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:46.548 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:46.549 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.549 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:46.550 [print] Beheer PDOK
57
* print operateson
0
05:06:46.550 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=701d4eb8-8aae-4708-bba5-3edf6987676d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3229e4d7-4bcd-4b94-819d-8e62de69ce2e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:06:46.555 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
7
05:06:46.563 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.564 [print] "false";"true";"true"
76
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.294:82] b5ee6914-04bd-4c7e-a180-242371ae40d9
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.339 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:46.922 [print] https://inspire.rivm.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:46.923 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:46.924 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.924 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:46.925 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
6
05:06:46.931 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:46.933 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:46.933 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.934 [print] "false";"true";"true"
76
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.295:82] cb13a608-3d78-4f79-ba60-be63ccd6e268
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.344 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:46.884 [print] https://service.pdok.nl/cbs/vk100/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:46.885 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:46.885 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:46.886 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:46.887 [print] Beheer PDOK
57
* print operateson
0
05:06:46.887 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:46.888 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:46.889 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:46.890 [print] "true";"true"
76
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.296:82] 47470f53-e0aa-45f3-ada3-ddf130dd54af
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.489 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47470f53-e0aa-45f3-ada3-ddf130dd54af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47470f53-e0aa-45f3-ada3-ddf130dd54af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:47.040 [print] https://service.pdok.nl/cbs/wb2021/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:47.040 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:47.041 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.041 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:47.042 [print] Beheer PDOK
57
* print operateson
0
05:06:47.042 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.044 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.045 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.045 [print] "true";"true"
76
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.297:82] 5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.570 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:47.118 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:47.119 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:47.120 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.120 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:47.121 [print] Beheer PDOK
57
* print operateson
0
05:06:47.121 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.123 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.123 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.124 [print] "true";"true"
76
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.298:82] e222648d-d19e-4a99-a67d-2af1c9aabd75
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.894 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:47.450 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:47.450 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:47.452 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.452 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:47.453 [print] Beheer PDOK
57
* print operateson
0
05:06:47.453 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.454 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.455 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.457 [print] "true";"true"
76
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.299:82] 8eb296dd-0e1d-4ed9-be24-297149d770f8
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:46.940 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8eb296dd-0e1d-4ed9-be24-297149d770f8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8eb296dd-0e1d-4ed9-be24-297149d770f8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
6
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
4
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:47.475 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2015/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:47.476 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:47.477 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.477 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:47.477 [print] Beheer PDOK
57
* print operateson
0
05:06:47.477 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.479 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.479 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.480 [print] "true";"true"
76
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.300:82] 28e6b45e-7627-454d-99a0-4119bbe1678d
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.049 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '28e6b45e-7627-454d-99a0-4119bbe1678d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
580
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '28e6b45e-7627-454d-99a0-4119bbe1678d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
12
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:47.651 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:47.652 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:47.652 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.653 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:47.654 [print] Beheer PDOK
57
* print operateson
0
05:06:47.654 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.655 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.656 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.657 [print] "true";"true"
76
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.301:82] ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.128 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:47.679 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:47.679 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:47.680 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:47.680 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:47.681 [print] Beheer PDOK
57
* print operateson
0
05:06:47.681 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:47.682 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:47.683 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:47.683 [print] "true";"true"
76
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.302:82] d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.460 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
3
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.015 [print] https://service.pdok.nl/rvo/invasieve-exoten/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:48.016 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:48.016 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.017 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.017 [print] Beheer PDOK
57
* print operateson
0
05:06:48.018 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.019 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.020 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.020 [print] "true";"true"
76
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.303:82] aa31349f-9607-4fdb-83ac-732f0b942adc
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.485 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aa31349f-9607-4fdb-83ac-732f0b942adc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aa31349f-9607-4fdb-83ac-732f0b942adc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.058 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:48.059 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:48.060 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.060 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.061 [print] Beheer PDOK
57
* print operateson
0
05:06:48.061 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.062 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.063 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.063 [print] "true";"true"
76
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.304:82] 78155dcb-61fa-4c16-896f-637f5936ce6c
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.661 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78155dcb-61fa-4c16-896f-637f5936ce6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78155dcb-61fa-4c16-896f-637f5936ce6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.194 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:48.194 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:48.195 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.195 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.196 [print] Beheer PDOK
57
* print operateson
0
05:06:48.196 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.197 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.198 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.198 [print] "true";"true"
76
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.305:82] 88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:47.687 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.233 [print] https://service.pdok.nl/kadaster/hy/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:48.234 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:48.235 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.235 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.236 [print] Beheer PDOK
57
* print operateson
0
05:06:48.236 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.238 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.239 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.239 [print] "true";"true"
76
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.306:82] 0fa448bb-332b-40b2-adab-13626b29bee6
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.024 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0fa448bb-332b-40b2-adab-13626b29bee6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0fa448bb-332b-40b2-adab-13626b29bee6'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.584 [print] https://service.pdok.nl/kadaster/lu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:48.585 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:48.586 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.586 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.586 [print] Beheer PDOK
57
* print operateson
0
05:06:48.586 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.588 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.588 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.589 [print] "true";"true"
76
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.307:82] d84b0a71-4460-4e16-8a7e-5507f2e6bcbf
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.067 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.629 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:48.630 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:48.631 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.631 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
05:06:48.632 [print] Beheer PDOK
57
* print operateson
0
05:06:48.632 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.633 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.634 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.635 [print] "true";"true"
76
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.308:82] b85d4a0a-c0f7-42f4-9316-b214d205ca38
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.202 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.727 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:48.727 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:48.728 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.728 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:48.730 [print] RDW
57
* print operateson
0
05:06:48.730 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.731 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.732 [print] "Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Evaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Gecontroleerd met INSPIRE verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.732 [print] "true";"true"
76
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.309:82] d624bfd0-8f21-44c4-a22c-0f0877a539fc
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.243 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:48.775 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:48.775 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:48.776 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:48.776 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
05:06:48.777 [print] Beheer PDOK
57
* print operateson
0
05:06:48.777 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:48.779 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:48.779 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:48.780 [print] "true";"true"
76
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.310:82] 641a0f48-872b-4470-b130-e3d28e6bfdfb
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.593 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:49.161 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnmarienestrategie2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:49.161 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.162 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.162 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:49.164 [print] Beheer PDOK
57
* print operateson
0
05:06:49.164 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.165 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
6
05:06:49.172 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.173 [print] "true";"true"
76
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.311:82] 0d7ca7bc-99de-4539-af33-70b206f29355
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.639 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d7ca7bc-99de-4539-af33-70b206f29355'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d7ca7bc-99de-4539-af33-70b206f29355'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
0
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.173 [print] https://service.pdok.nl/kadaster/adressen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:49.174 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:49.174 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.174 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:49.176 [print] Beheer PDOK
57
* print operateson
0
05:06:49.177 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.179 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.180 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.181 [print] "true";"true"
76
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.312:82] 46873d16-6835-48c4-b47f-134ab0cb31fa
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.737 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.274 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:49.275 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.276 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.276 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:06:49.278 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:49.278 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.279 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.280 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.281 [print] "false";"false"
76
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.313:82] a0ad469d-be1b-4d38-b699-faf946666bcc
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:48.784 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a0ad469d-be1b-4d38-b699-faf946666bcc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a0ad469d-be1b-4d38-b699-faf946666bcc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:49.314 [print] https://service.pdok.nl/lv/bag/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:06:49.315 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
1
05:06:49.316 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.317 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:49.318 [print] Beheer PDOK
57
* print operateson
0
05:06:49.318 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.320 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:49.321 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.322 [print] "true";"true"
76
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.314:82] fbe544b6-6e6f-43a0-80b9-ced1df78c434
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.179 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
1
25
And param request = 'GetRecordById'
0
26
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.711 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:49.712 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.713 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.713 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:49.713 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:49.713 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.715 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.716 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.716 [print] "false";"false"
76
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.315:82] 37308f90-e619-4b62-ae9e-e656bb3f1649
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.186 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.768 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:49.769 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.770 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.770 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:49.770 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:49.770 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.772 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.773 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.773 [print] "false";"false"
76
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.316:82] 72f30ca1-3b80-4020-b9ed-301b1a88df39
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.285 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.821 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:49.822 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.823 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.823 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:49.823 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:49.823 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.825 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.825 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.826 [print] "false";"false"
76
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.317:82] f59357eb-185f-42a5-b465-90bfa6e3e416
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.327 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:49.864 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:49.865 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:49.866 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:49.866 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:49.867 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:06:49.867 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:49.868 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:49.869 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:49.870 [print] "false";"false"
76
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.318:82] dc9fbc85-1263-4a1b-b001-7be701a6039e
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.720 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:06:50.321 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.322 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:50.323 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.323 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.324 [print] Beheer PDOK
57
* print operateson
0
05:06:50.324 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.326 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:50.327 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.328 [print] "true";"true"
76
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.319:82] 252db472-201d-430b-9c55-4d37563787bc
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.777 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '252db472-201d-430b-9c55-4d37563787bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '252db472-201d-430b-9c55-4d37563787bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.369 [print] https://service.pdok.nl/rws/vaarwegmarkeringennld/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.370 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:50.370 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.371 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.371 [print] Beheer PDOK
57
* print operateson
0
05:06:50.371 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.373 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:50.373 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.374 [print] "true";"true"
76
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.320:82] 6a129fd1-0988-4b8a-975a-6ff134b6754a
ms: 634
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.830 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6a129fd1-0988-4b8a-975a-6ff134b6754a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
617
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6a129fd1-0988-4b8a-975a-6ff134b6754a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.455 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegennacht/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.457 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:50.457 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.458 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.458 [print] Beheer PDOK
57
* print operateson
0
05:06:50.458 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.460 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:50.462 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.463 [print] "true";"true"
76
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.321:82] 7c664a91-1aa2-4923-9d17-6a43e4075f47
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:49.873 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.434 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.435 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:50.436 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.436 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.437 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:50.437 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.440 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:50.440 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.441 [print] "true";"true"
76
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.322:82] bfcc588f-9393-4c70-b989-d9e92ac2f493
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.856 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wcs?&service=wcs&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.858 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:06:50.860 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.860 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.861 [print] Beheer PDOK
57
* print operateson
0
05:06:50.861 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.862 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
0
05:06:50.864 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"de service is conform";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.865 [print] "true";"true"
76
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.323:82] 2c2cc118-dee5-448f-9658-e2649bcb7d7f
ms: 527
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.378 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.900 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.900 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:50.901 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.901 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.902 [print] KNMI
57
* print operateson
0
05:06:50.902 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.904 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:50.904 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.905 [print] true
76
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.324:82] 88a93a3b-d522-4c5d-9b0f-c6c39a118442
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.445 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.967 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wms?&request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:50.968 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:50.968 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:50.968 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:50.969 [print] Beheer PDOK
57
* print operateson
0
05:06:50.969 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:50.972 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
19
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:50.991 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:50.992 [print] "true";"true"
76
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.325:82] 52d0313e-0d2b-44b4-b51e-d9e504307f70
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.467 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:50.999 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.000 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:06:51.001 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.001 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.002 [print] Beheer PDOK
57
* print operateson
0
05:06:51.002 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.003 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.004 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.005 [print] "true";"true"
76
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.326:82] 1c0dcc64-91aa-4d44-a9e3-54355556f5e7
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.869 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:51.441 [print] https:\/\/service.pdok.nl\/lv\/bag\/wfs\/v2_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.441 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:51.442 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.442 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.443 [print] Beheer PDOK
57
* print operateson
0
05:06:51.443 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.445 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.446 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.447 [print] "true";"true";"true"
76
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.327:82] 9e2e977a-16a6-42a4-a208-c4f70704f383
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:50.909 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:51.460 [print] https:\/\/service.pdok.nl\/lv\/bag\/wms\/v2_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.461 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:51.462 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.462 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.463 [print] Beheer PDOK
57
* print operateson
0
05:06:51.463 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.464 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.465 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.466 [print] "true";"true"
76
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.328:82] 15c3c30f-0db2-4b3b-80f6-b990c8fc8225
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.003 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
4
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:51.589 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.590 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:51.591 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.591 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.592 [print] Beheer PDOK
57
* print operateson
0
05:06:51.592 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.594 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.595 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.596 [print] "true";"true"
76
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.329:82] e9ba7d7f-6cd1-4271-bce4-56432924b338
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.008 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:51.555 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.556 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:51.556 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.556 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.557 [print] Beheer PDOK
57
* print operateson
0
05:06:51.557 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.559 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.559 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.560 [print] "true";"true"
76
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.330:82] e75b66ae-21b1-4303-aeb3-787608707b23
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.450 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e75b66ae-21b1-4303-aeb3-787608707b23'
2
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e75b66ae-21b1-4303-aeb3-787608707b23'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:51.994 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wfs?request=GetCapabilitiesservice=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:51.994 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:51.995 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:51.995 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:51.996 [print] Beheer PDOK
57
* print operateson
0
05:06:51.996 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:51.998 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:51.998 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:51.999 [print] "true";"true"
76
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.331:82] e5ef707f-6458-4567-8d2c-d24fe88ab5e9
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.469 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.010 [print] https://www.gdngeoservices.nl/inspire/wms/zoutvelden_en_productieputten?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:52.011 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.011 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.011 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.012 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:06:52.012 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.013 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.014 [print] "Technical Guidance for the implementation of INSPIRE View Services";"De service voldoet niet aan de richtlijnen van INSPIRE vanwege technische beperkingen";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.015 [print] "false";"false"
76
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.332:82] 76854ff3-a853-4405-b9fd-acef66460376
ms: 719
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.564 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76854ff3-a853-4405-b9fd-acef66460376'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
626
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76854ff3-a853-4405-b9fd-acef66460376'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
6
34
* def title = get response //citation/CI_Citation/title/CharacterString
6
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
6
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
6
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
5
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:06:52.237 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
0
05:06:52.242 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
4
52
* print protocol2
0
05:06:52.246 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.246 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
10
56
* print organisationpath
0
05:06:52.256 [print] Beheer PDOK
57
* print operateson
0
05:06:52.256 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
6
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
6
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.269 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
6
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.276 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
6
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.282 [print] "true";"true"
76
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.333:82] ff2a91df-931c-46fe-8f07-a1ec64e1335e
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:51.600 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.144 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:52.145 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.145 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.145 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.146 [print] KNMI
57
* print operateson
0
05:06:52.146 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.147 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.148 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.149 [print] true
76
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.334:82] 49ff0584-a173-4098-824c-119edf8447f7
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.003 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '49ff0584-a173-4098-824c-119edf8447f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.555 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:52.556 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.557 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.557 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.558 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
05:06:52.558 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.559 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.560 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.561 [print] "true";"true"
76
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.335:82] eec0708d-bab6-41c2-aa5b-9c435a1a177e
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.018 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
6
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.573 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:52.573 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.575 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.575 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.576 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:06:52.577 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.578 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:06:52.579 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.581 [print] true
76
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.336:82] 94f241c2-43a2-42c3-8e9e-71976605aa0e
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.156 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.699 [print] https://service.pdok.nl/brt/top10nl/wms/v1_0?service=wms&request=getCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:52.701 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.702 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.702 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.703 [print] Beheer PDOK
57
* print operateson
0
05:06:52.703 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4b282988-cb91-4bbc-b147-f653014917cb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.705 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.707 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.708 [print] "true";"true"
76
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.337:82] 539ec652-482d-4806-a830-0458cf8be477
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.286 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '539ec652-482d-4806-a830-0458cf8be477'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '539ec652-482d-4806-a830-0458cf8be477'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:52.805 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/EF
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:52.806 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:52.807 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:52.807 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:52.808 [print] Informatiehuis Water
57
* print operateson
0
05:06:52.808 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:52.809 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:52.810 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:52.811 [print] "false";"true";"true"
76
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.338:82] ddf33bff-8de3-4cca-b6f5-24d18daa502f
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.565 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.090 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.092 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.092 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.093 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.093 [print] Beheer PDOK
57
* print operateson
0
05:06:53.093 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.095 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.096 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.097 [print] "true";"true";"true"
76
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.339:82] f39d198a-1e69-43cc-b359-cc60a8c22d28
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.584 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.125 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.126 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.127 [print] OGC:SOS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.127 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.128 [print] RIVM
57
* print operateson
0
05:06:53.128 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.129 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.130 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Voldoet aan de SDS interoperabilities specificaties.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Voldoet aan de download specificaties";"OGC Sensor Observation Service Interface Standard";"Conform OGC SOS specificaties"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.131 [print] "true";"true";"true"
76
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.340:82] f3e68b05-f5c8-4796-bc67-33a3db1c1d65
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.712 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
505
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.224 [print] https://inspire.caris.nl/geoserver/cz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.224 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.225 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.225 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.226 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:06:53.226 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.227 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.228 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.229 [print] "true";"true"
76
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.341:82] b4ae5b2c-f557-4a30-bbf2-c2681a544f32
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:52.814 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.402 [print] https://geodata.nationaalgeoregister.nl/vin/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.403 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.403 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.403 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.404 [print] Beheer PDOK
57
* print operateson
0
05:06:53.404 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.406 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.407 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.408 [print] "true";"true"
76
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.342:82] deb81ebe-c7a7-42ba-bc21-f07cd348c3e8
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:53.100 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.642 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.643 [print] OGC:CSW
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.643 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.644 [print] OGC:CSW
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.644 [print] Beheer PDOK
57
* print operateson
0
05:06:53.644 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.646 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-discovery-services-0"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.647 [print] "Deze service is conform INSPIRE richtlijn betreffende netwerkdiensten";"Deze service is conform INSPIRE richtlijn betreffende diensten met betrekking tot ruimtelijke gegevens";"Deze service is conform de Technical Guidance for INSPIRE Discovery Services"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
7
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.654 [print] "true";"true";"true"
76
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.343:82] b87a0095-2ad7-4dbb-81a1-fed060df79e1
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:53.135 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:06:53.655 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:06:53.656 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
1
05:06:53.657 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.657 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.658 [print] Beheer PDOK
57
* print operateson
0
05:06:53.658 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.659 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.660 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.660 [print] "true";"true"
76
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.344:82] 7d33772b-8bb4-4c9a-b5b4-07ada37694cd
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:53.233 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.774 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.774 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.775 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.775 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.776 [print] KNMI
57
* print operateson
0
05:06:53.776 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.778 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.778 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.779 [print] true
76
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.345:82] ac873153-d885-45e4-b2ab-ad0600d203d3
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:06:53.411 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac873153-d885-45e4-b2ab-ad0600d203d3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac873153-d885-45e4-b2ab-ad0600d203d3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:06:53.941 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:06:53.942 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:06:53.943 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:06:53.943 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:06:53.944 [print] KNMI
57
* print operateson
0
05:06:53.944 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:06:53.946 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:06:53.947 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:06:53.947 [print] true
76
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0